mirror of https://github.com/CGAL/cgal
fix boost zlib targets
This commit is contained in:
parent
4af1e73f69
commit
3356d066cc
|
|
@ -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()
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in New Issue