mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Make the boost cmake workaround compatible with older versions of cmake.
This commit is contained in:
parent
2849169bff
commit
7a32daadf0
@ -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}")
|
||||
|
Loading…
Reference in New Issue
Block a user