Skip to content

Commit 66df69e

Browse files
committed
Enable Release by default.
1 parent 6a7fa5d commit 66df69e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

CMakeLists.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,16 @@ option(BUILD_SINGLE_THREAD "Only build the single thread" ON)
1818
option(AUTO_DETECT_CPU "Auto detect CPU architecture." ON)
1919
option(BUILD_OpenVML_TEST "Build Test" ON)
2020
option(BUILD_64BIT_INT "Build 64bit int interface(ilp64)" OFF)
21+
option(BUILD_DEBUG "Build Debug Version" OFF)
2122

2223
#####################################################
2324

25+
if(BUILD_DEBUG)
26+
set(CMAKE_BUILD_TYPE Debug)
27+
else()
28+
set(CMAKE_BUILD_TYPE Release)
29+
endif()
30+
2431
if(AUTO_DETECT_CPU)
2532
include(${PROJECT_SOURCE_DIR}/cmake/auto_detect_cpu.cmake)
2633
endif()

0 commit comments

Comments
 (0)