diff --git a/CMakeLists.txt b/CMakeLists.txt index 5b0b06b..f14cc76 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -185,6 +185,9 @@ endif() set(CMAKE_POSITION_INDEPENDENT_CODE ON) # Add slog submodule +if(POLICY CMP0000) + cmake_policy(VERSION 3.5) +endif() add_subdirectory(3rdparty/slog) include_directories(include 3rdparty/uthash/src) diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 291abcc..1628a0c 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -1,3 +1,5 @@ +cmake_minimum_required(VERSION 3.13) + # 'Google_test' is the subproject name project(tests)