diff options
author | Stephen Kelly <steveire@gmail.com> | 2011-08-25 16:29:26 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2011-08-25 16:30:26 (GMT) |
commit | 3449f6b88c0e8b11c13eae78e0932fd3140dfa89 (patch) | |
tree | 190c99bd6d77deb5157a6d677b9d6d39b845dbdb /Modules/GenerateExportHeader.cmake | |
parent | 36d28f2e6b60b684fa26dc8b906dcf51a5c93a0f (diff) | |
download | CMake-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.cmake | 4 |
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) |