Skip to content
Snippets Groups Projects
Commit bb527f8c authored by Marcin Kirsz's avatar Marcin Kirsz
Browse files

Develop build profile

parent b5ccc173
No related branches found
No related tags found
1 merge request!8Develop
Pipeline #48586 failed
......@@ -24,7 +24,7 @@ set(CMAKE_CXX_FLAGS_DEBUG
FORCE)
set(CMAKE_CXX_FLAGS_RELEASE
"-g -O3 -Wall -Wpedantic -Wextra"
"-g -O3 -Wall"
CACHE STRING
"Release build."
FORCE)
......@@ -35,6 +35,12 @@ set(CMAKE_CXX_FLAGS_PROFILE
"Flags used by the C++ compiler during profile builds."
FORCE)
set(CMAKE_CXX_FLAGS_DEVELOP
"-g -O3 -Wall -Wpedantic -Wextra"
CACHE STRING
"Release build."
FORCE)
# Set default build type
if(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE Release)
......@@ -47,6 +53,8 @@ if (CMAKE_BUILD_TYPE STREQUAL "DEBUG"
CMAKE_BUILD_TYPE STREQUAL "RELEASE"
OR
CMAKE_BUILD_TYPE STREQUAL "PROFILE"
OR
CMAKE_BUILD_TYPE STREQUAL "DEVELOP"
)
message(STATUS "${TADAH} Build type: ${CMAKE_BUILD_TYPE}.")
else()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment