mirror of
https://github.com/ceres-solver/ceres-solver.git
synced 2026-08-29 08:34:37 +08:00
Fix shared library build due to missing compile features specification
Change-Id: Ib4c7f0b18b8770ab8cb09b15b9cc17f90042ceb0
This commit is contained in:
@@ -278,6 +278,7 @@ if(BUILD_SHARED_LIBS)
|
||||
add_library(ceres_static STATIC $<TARGET_OBJECTS:ceres_internal> ${CERES_LIBRARY_SOURCE})
|
||||
target_include_directories(ceres_static PUBLIC $<TARGET_PROPERTY:ceres,INCLUDE_DIRECTORIES>)
|
||||
target_compile_definitions(ceres_static PUBLIC $<TARGET_PROPERTY:ceres,COMPILE_DEFINITIONS>)
|
||||
target_compile_features(ceres_static PUBLIC $<TARGET_PROPERTY:ceres,COMPILE_FEATURES>)
|
||||
target_compile_options(ceres_static PUBLIC $<TARGET_PROPERTY:ceres,COMPILE_OPTIONS>)
|
||||
target_link_libraries(ceres_static
|
||||
INTERFACE $<TARGET_PROPERTY:ceres,INTERFACE_LINK_LIBRARIES>
|
||||
|
||||
Reference in New Issue
Block a user