cmake: Error on invalid CMAKE_BUILD_TYPE
authorJustin Bogner <mail@justinbogner.com>
Sat, 8 Aug 2015 21:04:45 +0000 (21:04 +0000)
committerJustin Bogner <mail@justinbogner.com>
Sat, 8 Aug 2015 21:04:45 +0000 (21:04 +0000)
commit91d509f4fc0997a792fd0ab2ad869d9cbfbc082e
treeef240bfe4e5cda412ab2071d7e0614f09e6bf48e
parentc19de56ad9108a6c967eb7fd07237a3aae207fc5
cmake: Error on invalid CMAKE_BUILD_TYPE

Apparently if you make a typo in the argument to CMAKE_BUILD_TYPE,
cmake silently accepts this but doesn't apply any particular build
type to your build. This means you get a build that doesn't really
make any sense - it's sort of a debug build with asserts disabled.

Error out instead.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@244406 91177308-0d34-0410-b5e6-96231b3b80d8
CMakeLists.txt