From a23a8d134e5aba6d35830769c1838b06845c7e7d Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Fri, 7 Dec 2012 10:04:01 -0800 Subject: [PATCH] Fix setting the default build type. --- CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index f0522be8..41a01927 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,5 +1,4 @@ cmake_minimum_required(VERSION 2.6) -project(FORMAT) # Set the default CMAKE_BUILD_TYPE to Release. # This should be done before the project command since the latter can set @@ -9,6 +8,8 @@ if (NOT CMAKE_BUILD_TYPE) "Choose the type of build, options are: None(CMAKE_CXX_FLAGS or CMAKE_C_FLAGS used) Debug Release RelWithDebInfo MinSizeRel.") endif () +project(FORMAT) + add_library(format format.cc) # We compile Google Test ourselves instead of using pre-compiled libraries.