fixes
This commit is contained in:
@@ -124,7 +124,7 @@
|
||||
set(FGL_STATIC_ANALYSIS 0)
|
||||
endif ()
|
||||
|
||||
if (FGL_STATIC_ANALYSIS EQUAL 1)
|
||||
if (DEFINED FGL_STATIC_ANALYSIS AND FGL_STATIC_ANALYSIS EQUAL 1)
|
||||
list(APPEND FGL_CONFIG "-fanalyzer")
|
||||
# list(APPEND FGL_CONFIG "-Wanalyzer-too-complex")
|
||||
# Breaks more often then it is helpful
|
||||
|
||||
@@ -33,13 +33,15 @@ function(ConfigureFGLTarget NAME SRC_DIR INCLUDE_DIR)
|
||||
endfunction()
|
||||
|
||||
function(SplitDebugSymbols NAME)
|
||||
if (CMAKE_CXX_COMPILER_ID MATCHES "GNU|Clang")
|
||||
add_custom_command(TARGET ${NAME} POST_BUILD
|
||||
COMMAND ${CMAKE_OBJCOPY} --only-keep-debug $<TARGET_FILE:${NAME}> $<TARGET_FILE:${NAME}>.debug
|
||||
COMMAND ${CMAKE_STRIP} --strip-debug --strip-unneeded $<TARGET_FILE:${NAME}>
|
||||
COMMAND ${CMAKE_OBJCOPY} --add-gnu-debuglink=$<TARGET_FILE:${NAME}>.debug $<TARGET_FILE:${NAME}>
|
||||
COMMENT "Stripping symbols and creating ${NAME}.debug"
|
||||
)
|
||||
if (DEFINED FGL_STRIP_DEBUG AND FGL_STRIP_DEBUG)
|
||||
if (CMAKE_CXX_COMPILER_ID MATCHES "GNU|Clang")
|
||||
add_custom_command(TARGET ${NAME} POST_BUILD
|
||||
COMMAND ${CMAKE_OBJCOPY} --only-keep-debug $<TARGET_FILE:${NAME}> $<TARGET_FILE:${NAME}>.debug
|
||||
COMMAND ${CMAKE_STRIP} --strip-debug --strip-unneeded $<TARGET_FILE:${NAME}>
|
||||
COMMAND ${CMAKE_OBJCOPY} --add-gnu-debuglink=$<TARGET_FILE:${NAME}>.debug $<TARGET_FILE:${NAME}>
|
||||
COMMENT "Stripping symbols and creating ${NAME}.debug"
|
||||
)
|
||||
endif ()
|
||||
endif ()
|
||||
endfunction()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user