Fix building for CMake 2.8.12

This commit is contained in:
Carles Fernandez 2019-09-07 14:21:15 +02:00
parent b88d8d9b23
commit fd719a85b4
No known key found for this signature in database
GPG Key ID: 4C583C52B0C3877D
1 changed files with 2 additions and 2 deletions

View File

@ -765,8 +765,8 @@ endif()
if(CMAKE_VERSION VERSION_LESS 3.15)
if(NOT TARGET Boost::headers)
if(CMAKE_VERSION VERSION_LESS 3.0)
add_library(Boost::boost SHARED IMPORTED) # Trick for CMake 2.8.12
set_target_properties(Boost::boost PROPERTIES
add_library(Boost::headers SHARED IMPORTED) # Trick for CMake 2.8.12
set_target_properties(Boost::headers PROPERTIES
INTERFACE_INCLUDE_DIRECTORIES ${Boost_INCLUDE_DIR}
IMPORTED_LOCATION ${Boost_DATE_TIME_LIBRARIES}
)