Skip to content

Commit b4af52d

Browse files
committed
Fix: sets cmake build type to Release in case it is empty
1 parent 746f07b commit b4af52d

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

CMakeLists.txt

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

33
project (brainflow)
44

5+
6+
if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES)
7+
set(CMAKE_BUILD_TYPE "Release" CACHE STRING "Default build type" FORCE)
8+
endif()
9+
10+
511
SET (CMAKE_CXX_STANDARD 11)
612
SET (CMAKE_VERBOSE_MAKEFILE ON)
713
SET (BRAINFLOW_VERSION "0.0.1" CACHE STRING "BrainFlow Version")

0 commit comments

Comments
 (0)