--- octomap/src/math/CMakeLists.txt.orig 2022-05-12 20:49:09 UTC +++ octomap/src/math/CMakeLists.txt @@ -12,17 +12,17 @@ SET_TARGET_PROPERTIES( octomath PROPERTIES SOVERSION ${OCTOMAP_SOVERSION} ) -ADD_LIBRARY( octomath-static STATIC ${octomath_SRCS}) -SET_TARGET_PROPERTIES(octomath-static PROPERTIES OUTPUT_NAME "octomath") +#ADD_LIBRARY( octomath-static STATIC ${octomath_SRCS}) +#SET_TARGET_PROPERTIES(octomath-static PROPERTIES OUTPUT_NAME "octomath") if(NOT EXISTS "${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/cmake/octomap") file(MAKE_DIRECTORY "${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/cmake/octomap") endif() -export(TARGETS octomath octomath-static +export(TARGETS octomath APPEND FILE "${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/cmake/octomap/octomap-targets.cmake") -install(TARGETS octomath octomath-static +install(TARGETS octomath EXPORT octomap-targets INCLUDES DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}" ${INSTALL_TARGETS_DEFAULT_ARGS}