Compare commits

...

2 Commits

Author SHA1 Message Date
Marco De Lucia
58175dd8e2 Merge branch 'mdl/defaultstorelease' into 'main'
DEFAULT_BUILD_TYPE set to Release

See merge request naaice/poet!60
2025-12-06 22:37:17 +01:00
Marco De Lucia
c8a779ca58 set DEFAULT_BUILD_TYPE to "Release"; defined properties so one cycles through when using ccmake 2025-11-14 19:19:07 +01:00

View File

@ -8,6 +8,16 @@ project(POET
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED True)
set(DEFAULT_BUILD_TYPE "Release")
if(NOT CMAKE_BUILD_TYPE)
message(STATUS "Setting build type to '${DEFAULT_BUILD_TYPE}'.")
set(CMAKE_BUILD_TYPE "${DEFAULT_BUILD_TYPE}" CACHE
STRING "Choose the type of build." FORCE)
# Set the possible values of build type for cmake-gui
set_property(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS
"Debug" "Release" "MinSizeRel" "RelWithDebInfo")
endif()
set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)
include("CMake/POET_Scripts.cmake")