From: Kefu Chai Date: Fri, 27 Nov 2020 15:54:27 +0000 (+0800) Subject: cmake: pass REQUIRED to find_package(StdFilesystem) X-Git-Tag: v16.1.0~407^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=48b3ef5c709482fde52dd3709ec52e9dedcf4a9b;p=ceph.git cmake: pass REQUIRED to find_package(StdFilesystem) otherwise there is chance that we could link to StdFilesystem::filesystem which is not defined anywhere. Signed-off-by: Kefu Chai --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 35949b11496c..65a81c9e1003 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -626,7 +626,7 @@ set(WITH_MGR_ROOK_CLIENT WITH_MGR_DASHBOARD_FRONTEND) include_directories(SYSTEM ${PROJECT_BINARY_DIR}/include) find_package(Threads REQUIRED) -find_package(StdFilesystem) +find_package(StdFilesystem REQUIRED) option(WITH_SELINUX "build SELinux policy" OFF) if(WITH_SELINUX)