There was an error while loading. Please reload this page.
1 parent 1993c83 commit 9a48789Copy full SHA for 9a48789
CMakeLists.txt
@@ -9,7 +9,11 @@ if (NOT CMAKE_BUILD_TYPE)
9
set(CMAKE_BUILD_TYPE Release)
10
message(STATUS "Build type: Release")
11
else()
12
- message(WARNING "CMake build type is set to ${CMAKE_BUILD_TYPE}! This might result in bad performance!")
+ if (NOT CMAKE_BUILD_TYPE STREQUAL "Release")
13
+ message(WARNING "CMake build type is set to ${CMAKE_BUILD_TYPE}! This might result in bad performance!")
14
+ else()
15
+ message(STATUS "Build type: Release")
16
+ endif()
17
endif()
18
19
if (UNIX)
0 commit comments