From 7ac0ab1f88b66d162a89d055517551b3b7ecd8a6 Mon Sep 17 00:00:00 2001 From: Stephen Kelly Date: Wed, 24 Aug 2011 19:50:31 +0200 Subject: [PATCH] Quote paths in case there is a space in one of them. --- Tests/Module/GenerateExportHeader/CMakeLists.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Tests/Module/GenerateExportHeader/CMakeLists.txt b/Tests/Module/GenerateExportHeader/CMakeLists.txt index dc7268942..914147189 100644 --- a/Tests/Module/GenerateExportHeader/CMakeLists.txt +++ b/Tests/Module/GenerateExportHeader/CMakeLists.txt @@ -65,7 +65,7 @@ macro(_do_build Include Library LibrarySource Source) "set(CMAKE_INCLUDE_CURRENT_DIR ON)\n" - "set(CMAKE_RUNTIME_OUTPUT_DIRECTORY \${CMAKE_CURRENT_BINARY_DIR})\n" + "set(CMAKE_RUNTIME_OUTPUT_DIRECTORY \"\${CMAKE_CURRENT_BINARY_DIR}\")\n" "include(GenerateExportHeader)\n" @@ -79,9 +79,9 @@ macro(_do_build Include Library LibrarySource Source) " add_definitions(-DCOMPILER_IS_MSVC)\n" "endif()\n" - "add_subdirectory(${LibrarySource})\n" + "add_subdirectory(\"${LibrarySource}\")\n" - "include_directories(${LibrarySource} \${CMAKE_CURRENT_BINARY_DIR}/${LibrarySource})\n" + "include_directories(\"${LibrarySource}\" \"\${CMAKE_CURRENT_BINARY_DIR}/${LibrarySource}\")\n" "${CONDITIONAL_STATIC_DEFINE}"