Merge topic 'GenerateExportHeader-IS_ABSOLUTE-issue-12645'

9f92cdf GenerateExportHeader: Fix wrong use of IS_ABSOLUTE (#12645)
This commit is contained in:
David Cole 2012-01-09 14:09:27 -05:00 committed by CMake Topic Stage
commit 3323c73381
1 changed files with 1 additions and 1 deletions

View File

@ -298,7 +298,7 @@ macro(_DO_GENERATE_EXPORT_HEADER TARGET_LIBRARY)
set(EXPORT_MACRO_NAME ${_GEH_PREFIX_NAME}${_GEH_EXPORT_MACRO_NAME})
endif()
if(_GEH_EXPORT_FILE_NAME)
if(IS_ABSOLUTE _GEH_EXPORT_FILE_NAME)
if(IS_ABSOLUTE ${_GEH_EXPORT_FILE_NAME})
set(EXPORT_FILE_NAME ${_GEH_EXPORT_FILE_NAME})
else()
set(EXPORT_FILE_NAME "${CMAKE_CURRENT_BINARY_DIR}/${_GEH_EXPORT_FILE_NAME}")