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 | 701a1ef4ef1a5d3d23080836aa8654f4eaf28568 (patch) | |
tree | a5bdc7b8f449c00a62e80964ffa8b8706d0b6665 /CMakeLists.txt | |
parent | 7cfe6227d35d228e273d3686b93e6c3fd96015eb (diff) |
[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
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@285789 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 1b7fe83e65a4..7a70ebcf4b4d 100644 --- a/CMakeLists.txt +++ b/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. |