CMake: Only set CMAKE_BUILD_TYPE_INIT when not set
authorCampbell Barton <ideasman42@gmail.com>
Mon, 26 Jun 2017 23:50:35 +0000 (09:50 +1000)
committerCampbell Barton <ideasman42@gmail.com>
Mon, 26 Jun 2017 23:50:35 +0000 (09:50 +1000)
commitb796ce0f26c1bf206194eb8c004d214806c2828b
tree9f034d54827a30a3a3792b87e608a4208dc4ce66
parent5a1bdf2c3a7df5a6bde94e0dbc0e3d4d5618139d
CMake: Only set CMAKE_BUILD_TYPE_INIT when not set

Convenience makefile now uses CMAKE_BUILD_TYPE_INIT,
this means you can change the build type of an existing build
and it won't be overwritten when running `make`.

Useful if you want to add debug info to a release build for profiling.
CMakeLists.txt
GNUmakefile