fix boost zlib targets

This commit is contained in:
Maxime Gimeno 2020-06-02 15:31:55 +02:00
parent 4af1e73f69
commit 3356d066cc
2 changed files with 3 additions and 3 deletions

View File

@ -35,10 +35,10 @@ if(Boost_IOSTREAMS_FOUND AND NOT TARGET CGAL::Boost_iostreams_support)
if(CMAKE_VERSION VERSION_LESS 3.11)
set_target_properties(CGAL::Boost_iostreams_support PROPERTIES
INTERFACE_COMPILE_DEFINITIONS "CGAL_LINKED_WITH_BOOST_IOSTREAMS"
INTERFACE_LINK_LIBRARIES "${Boost_LIB};${ZLIB_LIBS}")
INTERFACE_LINK_LIBRARIES ${Boost_LIB} ${ZLIB_LIBS})
else()
set_target_properties(CGAL::Boost_iostreams_support PROPERTIES
INTERFACE_COMPILE_DEFINITIONS "CGAL_LINKED_WITH_BOOST_IOSTREAMS")
target_link_libraries(CGAL::Boost_iostreams_support INTERFACE "${Boost_LIB};${ZLIB_LIBS}")
target_link_libraries(CGAL::Boost_iostreams_support INTERFACE ${Boost_LIB} ${ZLIB_LIBS})
endif()
endif()

View File

@ -8,5 +8,5 @@ if(Boost_SERIALIZATION_FOUND AND NOT TARGET CGAL::Boost_serialization_support)
add_library(CGAL::Boost_serialization_support INTERFACE IMPORTED)
set_target_properties(CGAL::Boost_serialization_support PROPERTIES
INTERFACE_COMPILE_DEFINITIONS "CGAL_LINKED_WITH_BOOST_SERIALIZATION"
INTERFACE_LINK_LIBRARIES "${Boost_LIB}")
INTERFACE_LINK_LIBRARIES ${Boost_LIB})
endif()