BuildTypeSTKRelease.cmake 981 B

12345678910111213141516171819202122232425262728
  1. # Build type STKRelease is similar to Release provided by CMake,
  2. # but it uses a lower optimization level
  3. set(CMAKE_CXX_FLAGS_STKRELEASE "-O2 -DNDEBUG" CACHE STRING
  4. "Flags used by the C++ compiler during STK release builds."
  5. FORCE)
  6. set(CMAKE_C_FLAGS_STKRELEASE "-O2 -DNDEBUG" CACHE STRING
  7. "Flags used by the C compiler during STK release builds."
  8. FORCE)
  9. set(CMAKE_EXE_LINKER_FLAGS_STKRELEASE
  10. "" CACHE STRING
  11. "Flags used for linking binaries during STK release builds."
  12. FORCE)
  13. set(CMAKE_SHARED_LINKER_FLAGS_STKRELEASE
  14. "" CACHE STRING
  15. "Flags used by the shared libraries linker during STK release builds."
  16. FORCE)
  17. mark_as_advanced(
  18. CMAKE_CXX_FLAGS_STKRELEASE
  19. CMAKE_C_FLAGS_STKRELEASE
  20. CMAKE_EXE_LINKER_FLAGS_STKRELEASE
  21. CMAKE_SHARED_LINKER_FLAGS_STKRELEASE)
  22. set(CMAKE_BUILD_TYPE "${CMAKE_BUILD_TYPE}" CACHE STRING
  23. "Choose the type of build, options are: None Debug Release RelWithDebInfo MinSizeRel STKRelease."
  24. FORCE)