Bug #58: Completed quoting for parameters of some CMake commands

A wiki article pointed out that whitespace will only be preserved for parameters
in CMake commands if passed strings will be appropriately quoted or escaped.
http://cmake.org/Wiki/CMake/Language_Syntax#CMake_splits_arguments_unless_you_use_quotation_marks_or_escapes.

Quoting was added so that more places should also handle file names correctly
which contain space characters or semicolons eventually.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
This commit is contained in:
Markus Elfring
2014-08-01 15:49:11 +02:00
parent 86797591ec
commit d3ccdc2cdd
4 changed files with 32 additions and 30 deletions

View File

@@ -6,7 +6,7 @@ if(USE_QT5)
find_package(Qt5Widgets REQUIRED)
else()
find_package(Qt4 COMPONENTS QtCore QtGui REQUIRED)
include(${QT_USE_FILE})
include("${QT_USE_FILE}")
add_definitions(${QT_DEFINITIONS})
endif()