From fd719a85b45464f47d55fe55391c4e77f040b751 Mon Sep 17 00:00:00 2001 From: Carles Fernandez Date: Sat, 7 Sep 2019 14:21:15 +0200 Subject: [PATCH] Fix building for CMake 2.8.12 --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 9f1594fb5..894cc6e6c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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} )