diff --git a/CMakeLists.txt b/CMakeLists.txt index 823acb4..5edac56 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -8,9 +8,16 @@ set(CMAKE_CXX_EXTENSIONS OFF) find_package(Threads REQUIRED) list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake") -set(FMT_USE_CPP11 OFF) -set(FMT_TEST OFF) -set(FMT_USE_CPP11 OFF) +## CMP0063 +if (POLICY CMP0063) + cmake_policy(SET CMP0063 NEW) +endif () +if (POLICY CMP0048) + cmake_policy(SET CMP0048 NEW) +endif () +set(FMT_USE_CPP11 OFF CACHE BOOL "Use C++11" FORCE) +set(FMT_TEST OFF CACHE BOOL "Build tests" FORCE) +set(FMT_USE_CPP11 OFF CACHE BOOL "Use C++11" FORCE) add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/3party/fmt) option(ULIB_BUILD_TESTS "Build tests" OFF)