From db5765b3429efd6674e349ab5a6cd2b8b258dd1a Mon Sep 17 00:00:00 2001 From: Eyck Jentzsch Date: Wed, 10 Jan 2024 09:36:42 +0100 Subject: [PATCH] makes softfloat always a static library --- softfloat/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/softfloat/CMakeLists.txt b/softfloat/CMakeLists.txt index b2ff9df..b5766c6 100644 --- a/softfloat/CMakeLists.txt +++ b/softfloat/CMakeLists.txt @@ -327,7 +327,7 @@ set(OTHERS set(LIB_SOURCES ${PRIMITIVES} ${SPECIALIZE} ${OTHERS}) -add_library(softfloat ${LIB_SOURCES}) +add_library(softfloat STATIC ${LIB_SOURCES}) set_property(TARGET softfloat PROPERTY C_STANDARD 99) target_compile_definitions(softfloat PRIVATE SOFTFLOAT_ROUND_ODD @@ -347,7 +347,7 @@ set_target_properties(softfloat PROPERTIES install(TARGETS softfloat EXPORT ${PROJECT_NAME}Targets # for downstream dependencies - ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} COMPONENT libs # static lib + ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}/static COMPONENT libs # static lib LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} COMPONENT libs # shared lib FRAMEWORK DESTINATION ${CMAKE_INSTALL_LIBDIR} COMPONENT libs # for mac PUBLIC_HEADER DESTINATION ${CMAKE_INSTALL_INCLUDEDIR} COMPONENT devel # headers for mac (note the different component -> different package)