From 7a32daadf09dc43cbae9c8f4c7ab469e59c04ea6 Mon Sep 17 00:00:00 2001 From: Daniel Kirchner Date: Wed, 12 Jun 2019 18:04:08 +0200 Subject: [PATCH] Make the boost cmake workaround compatible with older versions of cmake. --- cmake/EthDependencies.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/EthDependencies.cmake b/cmake/EthDependencies.cmake index 5cf9ffcf6..53319e6c8 100644 --- a/cmake/EthDependencies.cmake +++ b/cmake/EthDependencies.cmake @@ -36,7 +36,7 @@ find_package(Boost 1.65.0 QUIET REQUIRED COMPONENTS ${BOOST_COMPONENTS}) if (NOT TARGET Boost::boost) # header only target add_library(Boost::boost INTERFACE IMPORTED) - target_include_directories(Boost::boost INTERFACE ${Boost_INCLUDE_DIRS}) + set_property(TARGET Boost::boost APPEND PROPERTY INTERFACE_INCLUDE_DIRECTORIES ${Boost_INCLUDE_DIRS}) endif() get_property(LOCATION TARGET Boost::boost PROPERTY INTERFACE_INCLUDE_DIRECTORIES) message(STATUS "Found Boost headers in ${LOCATION}")