mirror of
https://github.com/schnaader/precomp-cpp
synced 2026-08-23 00:23:04 -04:00
Improve CMakeLists to not warn if build type was manually set to Release
This commit is contained in:
parent
1993c83173
commit
9a48789323
1 changed files with 5 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue