diff --git a/CMakeLists.txt b/CMakeLists.txt index 799d907..dbc0829 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -9,7 +9,11 @@ if (NOT CMAKE_BUILD_TYPE) set(CMAKE_BUILD_TYPE Release) message(STATUS "Build type: Release") else() - message(WARNING "CMake build type is set to ${CMAKE_BUILD_TYPE}! This might result in bad performance!") + if (NOT CMAKE_BUILD_TYPE STREQUAL "Release") + message(WARNING "CMake build type is set to ${CMAKE_BUILD_TYPE}! This might result in bad performance!") + else() + message(STATUS "Build type: Release") + endif() endif() if (UNIX)