Add quotes in case cmake is installed in a prefix with a space.

This commit is contained in:
Stephen Kelly 2011-08-25 18:29:26 +02:00
parent 36d28f2e6b
commit 3449f6b88c
1 changed files with 2 additions and 2 deletions

View File

@ -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)