diff --git a/CMakeLists.txt b/CMakeLists.txt index 8d1b20bd230..625c481275d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -83,8 +83,10 @@ else() set(no_whole_archive_flag "--no-whole-archive") endif() -SET( Boost_USE_STATIC_LIBS ON CACHE STRING "ON or OFF" ) -FIND_PACKAGE(Boost 1.67 REQUIRED COMPONENTS +set( Boost_USE_STATIC_LIBS ON CACHE STRING "ON or OFF" ) +### Remove after Boost 1.70 CMake fixes are in place +set( Boost_NO_BOOST_CMAKE ON CACHE STRING "ON or OFF" ) +find_package(Boost 1.67 REQUIRED COMPONENTS date_time filesystem system diff --git a/CMakeModules/EosioTester.cmake.in b/CMakeModules/EosioTester.cmake.in index e938378ed93..a3cc2342bf9 100644 --- a/CMakeModules/EosioTester.cmake.in +++ b/CMakeModules/EosioTester.cmake.in @@ -34,6 +34,8 @@ else ( APPLE ) set( CMAKE_CXX_FLAGS "${CMAKE_C_FLAGS} ${CMAKE_CXX_FLAGS} -Wall") endif ( APPLE ) +### Remove after Boost 1.70 CMake fixes are in place +set( Boost_NO_BOOST_CMAKE ON CACHE STRING "ON or OFF" ) set( Boost_USE_STATIC_LIBS ON CACHE STRING "ON or OFF" ) find_package(Boost 1.67 REQUIRED COMPONENTS date_time diff --git a/CMakeModules/EosioTesterBuild.cmake.in b/CMakeModules/EosioTesterBuild.cmake.in index 119aa23a4d4..a1ea88182a9 100644 --- a/CMakeModules/EosioTesterBuild.cmake.in +++ b/CMakeModules/EosioTesterBuild.cmake.in @@ -32,6 +32,8 @@ else ( APPLE ) set( CMAKE_CXX_FLAGS "${CMAKE_C_FLAGS} ${CMAKE_CXX_FLAGS} -Wall") endif ( APPLE ) +### Remove after Boost 1.70 CMake fixes are in place +set( Boost_NO_BOOST_CMAKE ON CACHE STRING "ON or OFF" ) set( Boost_USE_STATIC_LIBS ON CACHE STRING "ON or OFF" ) find_package(Boost 1.67 REQUIRED COMPONENTS date_time