aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Vrátil <[email protected]>2018-03-04 22:25:31 +0100
committerDaniel Vrátil <[email protected]>2018-03-04 22:27:42 +0100
commitefd3ef9a8cedcad5aebdef1449202addea5b424d (patch)
treec738c0904a804cdec60a30de8b0c4296b3e5c886
parent4cb1338fe39182091c7085290352b28d38031fac (diff)
Quote xsltproc arguments
Should fix build on Windows when there are spaces in path.
-rw-r--r--autotests/libs/testresource/CMakeLists.txt6
-rw-r--r--src/server/CMakeLists.txt10
2 files changed, 8 insertions, 8 deletions
diff --git a/autotests/libs/testresource/CMakeLists.txt b/autotests/libs/testresource/CMakeLists.txt
index 6ac1f5f..727b27f 100644
--- a/autotests/libs/testresource/CMakeLists.txt
+++ b/autotests/libs/testresource/CMakeLists.txt
@@ -17,9 +17,9 @@ macro(kcfg_generate_dbus_interface _kcfg _name)
add_custom_command(
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${_name}.xml
COMMAND ${XSLTPROC_EXECUTABLE} --stringparam interfaceName ${_name}
- ${Akonadi_SOURCE_DIR}/src/core/kcfg2dbus.xsl
- ${_kcfg}
- > ${CMAKE_CURRENT_BINARY_DIR}/${_name}.xml
+ "${Akonadi_SOURCE_DIR}/src/core/kcfg2dbus.xsl"
+ "${_kcfg}"
+ > "${CMAKE_CURRENT_BINARY_DIR}/${_name}.xml"
DEPENDS ${Akonadi_SOURCE_DIR}/src/core/kcfg2dbus.xsl
${_kcfg}
)
diff --git a/src/server/CMakeLists.txt b/src/server/CMakeLists.txt
index ee31425..d453c5a 100644
--- a/src/server/CMakeLists.txt
+++ b/src/server/CMakeLists.txt
@@ -17,15 +17,15 @@ add_custom_command(
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/entities.h
${CMAKE_CURRENT_BINARY_DIR}/entities.cpp
COMMAND ${XSLTPROC_EXECUTABLE}
- --output ${CMAKE_CURRENT_BINARY_DIR}/entities.h
+ --output "${CMAKE_CURRENT_BINARY_DIR}/entities.h"
--stringparam code header
${CMAKE_CURRENT_SOURCE_DIR}/storage/entities.xsl
- ${AKONADI_DB_SCHEME}
+ "${AKONADI_DB_SCHEME}"
COMMAND ${XSLTPROC_EXECUTABLE}
- --output ${CMAKE_CURRENT_BINARY_DIR}/entities.cpp
+ --output "${CMAKE_CURRENT_BINARY_DIR}/entities.cpp"
--stringparam code source
- ${CMAKE_CURRENT_SOURCE_DIR}/storage/entities.xsl
- ${AKONADI_DB_SCHEME}
+ "${CMAKE_CURRENT_SOURCE_DIR}/storage/entities.xsl"
+ "${AKONADI_DB_SCHEME}"
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/storage/entities.xsl
${CMAKE_CURRENT_SOURCE_DIR}/storage/entities-header.xsl
${CMAKE_CURRENT_SOURCE_DIR}/storage/entities-source.xsl