OSDN Git Service

[CMake] Set default build type correctly
authorShoaib Meenai <smeenai@fb.com>
Wed, 2 Nov 2016 06:10:03 +0000 (06:10 +0000)
committerShoaib Meenai <smeenai@fb.com>
Wed, 2 Nov 2016 06:10:03 +0000 (06:10 +0000)
commit701a1ef4ef1a5d3d23080836aa8654f4eaf28568
treea5bdc7b8f449c00a62e80964ffa8b8706d0b6665
parent7cfe6227d35d228e273d3686b93e6c3fd96015eb
[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
CMakeLists.txt