Add support for newer boost
This commit is contained in:
parent
e4924917b9
commit
3773c1ab43
2
external/external_build.cmake
vendored
2
external/external_build.cmake
vendored
@ -252,7 +252,7 @@ ELSE (INTERNAL_BOOST)
|
||||
endif()
|
||||
if (${Boost_VERSION} VERSION_GREATER_EQUAL 1.70.0)
|
||||
set(Boost_DEP Boost::headers)
|
||||
set(Boost_TARGET Boost::headers PARENT_SCOPE)
|
||||
set(Boost_TARGET Boost::headers)
|
||||
endif()
|
||||
endif (INTERNAL_BOOST)
|
||||
mark_as_advanced(Boost_INCLUDE_DIRS Boost_LIBRARIES)
|
||||
|
@ -96,7 +96,7 @@ if (BUILD_SHARED_LIBS)
|
||||
endif(BUILD_STATIC_LIBS)
|
||||
else (BUILD_SHARED_LIBS)
|
||||
add_library(CosmoTool STATIC ${CosmoTool_SRCS} $<TARGET_OBJECTS:CosmoHDF5>)
|
||||
target_link_libraries(CosmoTool)
|
||||
target_link_libraries(CosmoTool ${CosmoTool_LIBS})
|
||||
set_property(TARGET CosmoTool PROPERTY POSITION_INDEPENDENT_CODE ON)
|
||||
add_dependencies(CosmoTool ${cosmotool_DEPS})
|
||||
endif (BUILD_SHARED_LIBS)
|
||||
|
Loading…
Reference in New Issue
Block a user