It seams that CMake 2.6 uses capitals for the first letter for CMAKE_BUILD_TYPE.