This commit is contained in:
2025-12-15 21:26:59 -05:00
parent e4953b64ff
commit 1e44655a66
2 changed files with 10 additions and 8 deletions

View File

@@ -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

View File

@@ -33,6 +33,7 @@ function(ConfigureFGLTarget NAME SRC_DIR INCLUDE_DIR)
endfunction()
function(SplitDebugSymbols NAME)
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
@@ -41,6 +42,7 @@ function(SplitDebugSymbols NAME)
COMMENT "Stripping symbols and creating ${NAME}.debug"
)
endif ()
endif ()
endfunction()
function(AddFGLExecutable NAME SRC_SOURCES_LOCATION)