Skip to content

Commit 62fbe1f

Browse files
committed
Set default build type to 'Release'
1 parent 9d30e7b commit 62fbe1f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

CMakeLists.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
11
cmake_minimum_required(VERSION 2.8)
2+
3+
# This needs to be before "project(..)".
4+
if(NOT DEFINED CMAKE_BUILD_TYPE)
5+
set(CMAKE_BUILD_TYPE "Release" CACHE STRING "Choose the type of build, options are: Debug Release")
6+
endif()
7+
message(STATUS "Build type: ${CMAKE_BUILD_TYPE}")
8+
9+
210
project(MOZART CXX)
311

412
ENABLE_TESTING()

0 commit comments

Comments
 (0)