From 7a9736d4dffe96d4afe754f01bd0d58c244ced19 Mon Sep 17 00:00:00 2001 From: Radovan Bast Date: Sat, 4 Feb 2017 18:37:24 +0100 Subject: [PATCH] add minsizerel to list of allowed build types --- modules/safeguards.cmake | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/safeguards.cmake b/modules/safeguards.cmake index 39505a7..a613896 100644 --- a/modules/safeguards.cmake +++ b/modules/safeguards.cmake @@ -17,6 +17,7 @@ string(TOUPPER "${CMAKE_BUILD_TYPE}" cmake_build_type_toupper) if(NOT cmake_build_type_tolower STREQUAL "debug" AND NOT cmake_build_type_tolower STREQUAL "release" AND + NOT cmake_build_type_tolower STREQUAL "minsizerel" AND NOT cmake_build_type_tolower STREQUAL "relwithdebinfo") - message(FATAL_ERROR "Unknown build type \"${CMAKE_BUILD_TYPE}\". Allowed values are Debug, Release, RelWithDebInfo (case-insensitive).") + message(FATAL_ERROR "Unknown build type \"${CMAKE_BUILD_TYPE}\". Allowed values are Debug, Release, RelWithDebInfo, and MinSizeRel (case-insensitive).") endif()