From 48b3ef5c709482fde52dd3709ec52e9dedcf4a9b Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Fri, 27 Nov 2020 23:54:27 +0800 Subject: [PATCH] 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 --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.47.3