diff options
author | David Faure <faure@kde.org> | 2011-08-27 07:42:26 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2011-08-27 07:44:52 (GMT) |
commit | 6a6393c905bd5bdddfaf0eb666ee479eed54ec28 (patch) | |
tree | ee017563ed764b0650a0b16709508fe7c412139f /Modules/GenerateExportHeader.cmake | |
parent | 5ca8c565bc3ebabea06bd7de655d9a120a7f008c (diff) | |
download | CMake-6a6393c905bd5bdddfaf0eb666ee479eed54ec28.zip CMake-6a6393c905bd5bdddfaf0eb666ee479eed54ec28.tar.gz CMake-6a6393c905bd5bdddfaf0eb666ee479eed54ec28.tar.bz2 |
Don't use a variable name that might be used in other files.
myDir is also used in the Grantlee config file, so if Grantlee
was found, this call failed.
Diffstat (limited to 'Modules/GenerateExportHeader.cmake')
-rw-r--r-- | Modules/GenerateExportHeader.cmake | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Modules/GenerateExportHeader.cmake b/Modules/GenerateExportHeader.cmake index 0f5c413..4eb67b5 100644 --- a/Modules/GenerateExportHeader.cmake +++ b/Modules/GenerateExportHeader.cmake @@ -215,7 +215,7 @@ macro(_test_compiler_has_deprecated) endif() endmacro() -set(myDir "${CMAKE_CURRENT_LIST_DIR}") +get_filename_component(_GENERATE_EXPORT_HEADER_MODULE_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH) macro(_DO_SET_MACRO_VALUES TARGET_LIBRARY) set(DEFINE_DEPRECATED) @@ -308,7 +308,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("${_GENERATE_EXPORT_HEADER_MODULE_DIR}/exportheader.cmake.in" "${EXPORT_FILE_NAME}" @ONLY) endmacro() function(GENERATE_EXPORT_HEADER TARGET_LIBRARY) @@ -343,4 +343,4 @@ function(add_compiler_export_flags) set (EXTRA_FLAGS "${EXTRA_FLAGS} -fvisibility-inlines-hidden") endif() set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${EXTRA_FLAGS}" PARENT_SCOPE) -endfunction()
\ No newline at end of file +endfunction() |