Skip to content

Commit 987aa23

Browse files
committed
not to override CMAKE_BUILD_TYPE
1 parent c1659fe commit 987aa23

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@ else ()
99
endif ()
1010
set(USE_CUDA ON CACHE BOOL "Compile with CUDA")
1111
set(USE_EIGEN OFF CACHE BOOL "Compile with Eigen")
12-
set(CMAKE_BUILD_TYPE Release)
12+
if (NOT CMAKE_BUILD_TYPE)
13+
set(CMAKE_BUILD_TYPE Release)
14+
endif ()
1315
find_package(Threads REQUIRED)
1416
find_package(OpenMP REQUIRED)
1517
if (OPENMP_FOUND)

0 commit comments

Comments
 (0)