Fix for problem with the CMake XCode generator ignoring the CMAKE_BUILD_TYPE value.