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