Changeset View
Changeset View
Standalone View
Standalone View
src/CMakeLists.txt
Show First 20 Lines • Show All 60 Lines • ▼ Show 20 Lines | |||||
add_compile_options_to_configuration(Debug -ftrapv) | add_compile_options_to_configuration(Debug -ftrapv) | ||||
# 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_flags(-static) | add_linker_flags(-static) | ||||
endif() | endif() | ||||
if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin") | if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin") | ||||
add_compile_definitions(MAC_OSX OBJC_OLD_DISPATCH_PROTOTYPES=0) | add_compile_definitions(MAC_OSX OBJC_OLD_DISPATCH_PROTOTYPES=0) | ||||
endif() | endif() | ||||
if(ENABLE_REDUCE_EXPORTS) | if(ENABLE_REDUCE_EXPORTS) | ||||
# Default visibility is set by CMAKE_<LANG>_VISIBILITY_PRESET, but this | # Default visibility is set by CMAKE_<LANG>_VISIBILITY_PRESET, but this | ||||
▲ Show 20 Lines • Show All 474 Lines • Show Last 20 Lines |