Skip to content

Commit 75e4dab

Browse files
authored
Merge pull request #55 from AntelopeIO/two_cmake_warn_fix
resolve two cmake warnings with latest cmake version
2 parents 8992c78 + de6cd85 commit 75e4dab

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

CMakeLists.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Defines ChainBase library target.
2-
cmake_minimum_required( VERSION 3.5 )
2+
cmake_minimum_required( VERSION 3.12 )
33
project( ChainBase )
44

55
#list( APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/CMakeModules" )
@@ -17,6 +17,9 @@ IF( WIN32 )
1717
ENDIF(WIN32)
1818

1919
if(NOT TARGET Boost::unit_test_framework)
20+
if(POLICY CMP0167)
21+
cmake_policy(SET CMP0167 NEW)
22+
endif()
2023
FIND_PACKAGE(Boost 1.67 REQUIRED COMPONENTS system unit_test_framework)
2124
endif()
2225

0 commit comments

Comments
 (0)