Don't set empty CMAKE_TOOLCHAIN_FILE or CMAKE_BUILD_TYPE
authorStephen Kelly <stephen.kelly@kdab.com>
Fri, 31 Aug 2012 09:59:30 +0000 (11:59 +0200)
committerQt by Nokia <qt-info@nokia.com>
Fri, 31 Aug 2012 14:51:27 +0000 (16:51 +0200)
commit449d1f620aa846409495a970a3858050951c6e46
tree1bdc394efbc7c95ae4fe2009b222b746e097a76f
parentb2ae34d9b5bf017876444fa90c4d6461bfdb4fc4
Don't set empty CMAKE_TOOLCHAIN_FILE or CMAKE_BUILD_TYPE

The CMake Visual Studio 10 generator generates an include() for
the empty CMAKE_TOOLCHAIN_FILE, causing the errors in the bug.

There may be other remaining errors to cause the Windows CMake build
to fail with that generator, but this patch is an improvement
anyway - there is no point in setting empty strings as values for
those variables.

Task-number: QTBUG-27087
Change-Id: I68cce9e3dce07835db5f42777ac02d440f90f967
Reviewed-by: Brad King <brad.king@kitware.com>
Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
src/corelib/Qt5CTestMacros.cmake