Skip to content

Commit 320810f

Browse files
committed
Set default build type into Release (Closes #35)
1 parent 1ac842d commit 320810f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@ cmake_minimum_required(VERSION 2.8)
22

33
project(litehtml)
44

5+
if (NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES)
6+
message(STATUS "No build type selected, default to Release")
7+
set(CMAKE_BUILD_TYPE "Release")
8+
endif()
9+
510
if(NOT MSVC)
611
set(CMAKE_CXX_FLAGS "-std=c++11")
712
set(CMAKE_CXX_FLAGS_DEBUG "-O0 -DDEBUG -g")

0 commit comments

Comments
 (0)