diff options
author | Shoaib Meenai <smeenai@fb.com> | 2016-11-02 06:10:03 +0000 |
---|---|---|
committer | Shoaib Meenai <smeenai@fb.com> | 2016-11-02 06:10:03 +0000 |
commit | d54da37d18c8a967ba3425ee41b486165379e11e (patch) | |
tree | 2bb4254d945b5310240cc47c691974b2d5648876 /llvm | |
parent | 5fd26e13da30e2cec5dfdf41a143752a47d8cc75 (diff) | |
download | bcm5719-llvm-d54da37d18c8a967ba3425ee41b486165379e11e.tar.gz bcm5719-llvm-d54da37d18c8a967ba3425ee41b486165379e11e.zip |
[CMake] Set default build type correctly
At least with cmake 3.6.1, the default build type setting was having no
effect; the generated CMakeCache.txt still had an empty CMAKE_BUILD_TYPE.
Force the variable to be set to achieve the desired behavior.
Differential Revision: https://reviews.llvm.org/D26200
llvm-svn: 285789
Diffstat (limited to 'llvm')
-rw-r--r-- | llvm/CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/CMakeLists.txt b/llvm/CMakeLists.txt index 1b7fe83e65a..7a70ebcf4b4 100644 --- a/llvm/CMakeLists.txt +++ b/llvm/CMakeLists.txt @@ -51,7 +51,7 @@ project(LLVM if (NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES) message(STATUS "No build type selected, default to Debug") - set(CMAKE_BUILD_TYPE "Debug" CACHE STRING "Build type (default Debug)") + set(CMAKE_BUILD_TYPE "Debug" CACHE STRING "Build type (default Debug)" FORCE) endif() # This should only apply if you are both on an Apple host, and targeting Apple. |