From a45d28256d020a4e871267c9bf00206fe9d2265e Mon Sep 17 00:00:00 2001 From: Ram-Z <132314-Ram-Z@users.noreply.gitlab.com> Date: Fri, 10 Jan 2020 19:12:48 +0000 Subject: Don't restrict CMAKE_BUILD_TYPE This prevents projects that add Eigen using `add_subdirectory` from using their own custom CMAKE_BUILD_TYPE and have Eigen respect the same custom flags. --- CMakeLists.txt | 7 ------- 1 file changed, 7 deletions(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 81c98a026..e4ca76c76 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -20,13 +20,6 @@ if (NOT CMAKE_BUILD_TYPE) set(CMAKE_BUILD_TYPE "Release") endif() -string(TOLOWER "${CMAKE_BUILD_TYPE}" cmake_build_type_tolower) -if( NOT cmake_build_type_tolower STREQUAL "debug" - AND NOT cmake_build_type_tolower STREQUAL "release" - 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).") -endif() - ############################################################################# # retrieve version information # -- cgit v1.2.3