summaryrefslogtreecommitdiffstats
path: root/Modules/GenerateExportHeader.cmake
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2011-08-25 16:29:26 (GMT)
committerStephen Kelly <steveire@gmail.com>2011-08-25 16:30:26 (GMT)
commit3449f6b88c0e8b11c13eae78e0932fd3140dfa89 (patch)
tree190c99bd6d77deb5157a6d677b9d6d39b845dbdb /Modules/GenerateExportHeader.cmake
parent36d28f2e6b60b684fa26dc8b906dcf51a5c93a0f (diff)
downloadCMake-3449f6b88c0e8b11c13eae78e0932fd3140dfa89.zip
CMake-3449f6b88c0e8b11c13eae78e0932fd3140dfa89.tar.gz
CMake-3449f6b88c0e8b11c13eae78e0932fd3140dfa89.tar.bz2
Add quotes in case cmake is installed in a prefix with a space.
Diffstat (limited to 'Modules/GenerateExportHeader.cmake')
-rw-r--r--Modules/GenerateExportHeader.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/GenerateExportHeader.cmake b/Modules/GenerateExportHeader.cmake
index e02811a..8ba26d8 100644
--- a/Modules/GenerateExportHeader.cmake
+++ b/Modules/GenerateExportHeader.cmake
@@ -191,7 +191,7 @@ macro(_test_compiler_has_deprecated)
endif()
endmacro()
-set(myDir ${CMAKE_CURRENT_LIST_DIR})
+set(myDir "${CMAKE_CURRENT_LIST_DIR}")
macro(_DO_SET_MACRO_VALUES TARGET_LIBRARY)
set(DEFINE_DEPRECATED)
@@ -284,7 +284,7 @@ macro(_DO_GENERATE_EXPORT_HEADER TARGET_LIBRARY)
set(EXPORT_IMPORT_CONDITION ${TARGET_LIBRARY}_EXPORTS)
endif()
- configure_file(${myDir}/exportheader.cmake.in ${EXPORT_FILE_NAME} @ONLY)
+ configure_file("${myDir}/exportheader.cmake.in" "${EXPORT_FILE_NAME}" @ONLY)
endmacro()
function(GENERATE_EXPORT_HEADER TARGET_LIBRARY)