Skip to content

Commit

Permalink
cmake: don`t split debug symbols off of static libs
Browse files Browse the repository at this point in the history
  • Loading branch information
MariusBgm committed Oct 29, 2024
1 parent f3d05c2 commit 635d54c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion SilKit/cmake/SilKitBuildTools.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ macro(silkit_split_debugsymbols targetName)
)
endmacro()


macro(silkit_package_debugsymbols targetName)
if(MSVC)
message(STATUS "Creating symbol package ${SILKIT_SYMBOLS_DIR_NAME}")
Expand All @@ -33,6 +32,11 @@ macro(silkit_package_debugsymbols targetName)
return()
endif()
if(UNIX AND CMAKE_BUILD_TYPE MATCHES "Debug")
get_target_property(targetType ${targetName} TYPE)
if(targetType STREQUAL STATIC_LIBRARY)
message(STATUS "SIL Kit: splitting debug symbols on static libraries is not supported")
return()
endif()

silkit_split_debugsymbols("${targetName}")

Expand Down

0 comments on commit 635d54c

Please sign in to comment.