stk-code_catmod/cmake/BuildTypeSTKRelease.cmake
auria c1a43b42aa Apply patch by rielb to make our use of custom build flags for release builds more CMake-standard
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10935 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-03-06 16:42:00 +00:00

28 lines
981 B
CMake

# Build type STKRelease is similar to Release provided by CMake,
# but it uses a lower optimization level
set(CMAKE_CXX_FLAGS_STKRELEASE "-O2 -DNDEBUG" CACHE STRING
"Flags used by the C++ compiler during STK release builds."
FORCE)
set(CMAKE_C_FLAGS_STKRELEASE "-O2 -DNDEBUG" CACHE STRING
"Flags used by the C compiler during STK release builds."
FORCE)
set(CMAKE_EXE_LINKER_FLAGS_STKRELEASE
"" CACHE STRING
"Flags used for linking binaries during STK release builds."
FORCE)
set(CMAKE_SHARED_LINKER_FLAGS_STKRELEASE
"" CACHE STRING
"Flags used by the shared libraries linker during STK release builds."
FORCE)
mark_as_advanced(
CMAKE_CXX_FLAGS_STKRELEASE
CMAKE_C_FLAGS_STKRELEASE
CMAKE_EXE_LINKER_FLAGS_STKRELEASE
CMAKE_SHARED_LINKER_FLAGS_STKRELEASE)
set(CMAKE_BUILD_TYPE "${CMAKE_BUILD_TYPE}" CACHE STRING
"Choose the type of build, options are: None Debug Release RelWithDebInfo MinSizeRel STKRelease."
FORCE)