From dbdf7ee942c979a43a7082383e2a623e0b518176 Mon Sep 17 00:00:00 2001 From: Jitse Niesen Date: Fri, 22 Oct 2010 12:23:35 +0100 Subject: Use 'Release' as default when build type is not specified. Otherwise, "cmake /path/to/eigen/" in an empty build directory, as specified on the CMake page on the wiki, yields a fatal error. --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index f60dbd8fc..a52dfca24 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -88,6 +88,9 @@ elseif(cmake_build_type_tolower STREQUAL "release") set(CMAKE_BUILD_TYPE "Release") elseif(cmake_build_type_tolower STREQUAL "relwithdebinfo") set(CMAKE_BUILD_TYPE "RelWithDebInfo") +elseif(cmake_build_type_tolower STREQUAL "") + # Use 'Release' as default when build type is not specified + set(CMAKE_BUILD_TYPE "Release") else() message(FATAL_ERROR "Unknown build type ${CMAKE_BUILD_TYPE}") endif() -- cgit v1.2.3