Changeset View
Changeset View
Standalone View
Standalone View
src/CMakeLists.txt
Show All 31 Lines | |||||
set(CMAKE_C_FLAGS_DEBUG "-g -O2") | set(CMAKE_C_FLAGS_DEBUG "-g -O2") | ||||
# Prefer -g3, defaults to -g if unavailable | # Prefer -g3, defaults to -g if unavailable | ||||
add_cxx_compiler_flag_with_fallback(CMAKE_CXX_FLAGS_DEBUG -g3 -g) | add_cxx_compiler_flag_with_fallback(CMAKE_CXX_FLAGS_DEBUG -g3 -g) | ||||
# Prefer -Og, defaults to -O0 if unavailable | # Prefer -Og, defaults to -O0 if unavailable | ||||
add_cxx_compiler_flag_with_fallback(CMAKE_CXX_FLAGS_DEBUG -Og -O0) | add_cxx_compiler_flag_with_fallback(CMAKE_CXX_FLAGS_DEBUG -Og -O0) | ||||
# Define the debugging symbols DEBUG and DEBUG_LOCKORDER when the Debug build | |||||
# type is selected. | |||||
string(APPEND CMAKE_CXX_FLAGS_DEBUG " -DDEBUG -DDEBUG_LOCKORDER") | |||||
# Ensure that WINDRES_PREPROC is enabled when using windres. | # Ensure that WINDRES_PREPROC is enabled when using windres. | ||||
if(${CMAKE_SYSTEM_NAME} MATCHES "Windows") | if(${CMAKE_SYSTEM_NAME} MATCHES "Windows") | ||||
# Ensure that WINDRES_PREPROC is enabled when using windres. | # Ensure that WINDRES_PREPROC is enabled when using windres. | ||||
list(APPEND CMAKE_RC_FLAGS "-DWINDRES_PREPROC") | list(APPEND CMAKE_RC_FLAGS "-DWINDRES_PREPROC") | ||||
# Build all static so there is no dll file to distribute. | # Build all static so there is no dll file to distribute. | ||||
add_compiler_flag(-static) | add_compiler_flag(-static) | ||||
endif() | endif() | ||||
▲ Show 20 Lines • Show All 292 Lines • Show Last 20 Lines |