From ce49384004e98dd9f05b4fff24c4fadaff19f42f Mon Sep 17 00:00:00 2001 From: Carles Fernandez Date: Tue, 27 Jul 2021 11:10:52 +0200 Subject: [PATCH] Fix detection of std::filesystem in recent CMake versions --- cmake/Modules/FindFILESYSTEM.cmake | 2 +- .../volk_gnsssdr/cmake/Modules/FindFILESYSTEM.cmake | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmake/Modules/FindFILESYSTEM.cmake b/cmake/Modules/FindFILESYSTEM.cmake index 060f92902..8f3b5f741 100644 --- a/cmake/Modules/FindFILESYSTEM.cmake +++ b/cmake/Modules/FindFILESYSTEM.cmake @@ -255,7 +255,7 @@ endif() cmake_pop_check_state() -set(FILESYSTEM_FOUND ${_found} CACHE BOOL "TRUE if we can compile and link a program using std::filesystem" FORCE) +set(FILESYSTEM_FOUND ${_found}) include(FindPackageHandleStandardArgs) find_package_handle_standard_args(FILESYSTEM DEFAULT_MSG FILESYSTEM_FOUND) diff --git a/src/algorithms/libs/volk_gnsssdr_module/volk_gnsssdr/cmake/Modules/FindFILESYSTEM.cmake b/src/algorithms/libs/volk_gnsssdr_module/volk_gnsssdr/cmake/Modules/FindFILESYSTEM.cmake index c4b7255e2..533d91543 100644 --- a/src/algorithms/libs/volk_gnsssdr_module/volk_gnsssdr/cmake/Modules/FindFILESYSTEM.cmake +++ b/src/algorithms/libs/volk_gnsssdr_module/volk_gnsssdr/cmake/Modules/FindFILESYSTEM.cmake @@ -253,7 +253,7 @@ endif() cmake_pop_check_state() -set(FILESYSTEM_FOUND ${_found} CACHE BOOL "TRUE if we can compile and link a program using std::filesystem" FORCE) +set(FILESYSTEM_FOUND ${_found}) include(FindPackageHandleStandardArgs) find_package_handle_standard_args(FILESYSTEM DEFAULT_MSG FILESYSTEM_FOUND)