Fix shared library build due to missing compile features specification Change-Id: Ib4c7f0b18b8770ab8cb09b15b9cc17f90042ceb0
diff --git a/internal/ceres/CMakeLists.txt b/internal/ceres/CMakeLists.txt index 63ef44b..7d9d9a9 100644 --- a/internal/ceres/CMakeLists.txt +++ b/internal/ceres/CMakeLists.txt
@@ -278,6 +278,7 @@ 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>