Skip to content

Commit

Permalink
Merge pull request #55 from AntelopeIO/two_cmake_warn_fix
Browse files Browse the repository at this point in the history
resolve two cmake warnings with latest cmake version
  • Loading branch information
spoonincode authored Jan 8, 2025
2 parents 8992c78 + de6cd85 commit 75e4dab
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Defines ChainBase library target.
cmake_minimum_required( VERSION 3.5 )
cmake_minimum_required( VERSION 3.12 )
project( ChainBase )

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

if(NOT TARGET Boost::unit_test_framework)
if(POLICY CMP0167)
cmake_policy(SET CMP0167 NEW)
endif()
FIND_PACKAGE(Boost 1.67 REQUIRED COMPONENTS system unit_test_framework)
endif()

Expand Down

0 comments on commit 75e4dab

Please sign in to comment.