File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -66,7 +66,9 @@ set(INSTALL_CMAKE_DIR ${DEF_INSTALL_CMAKE_DIR} CACHE PATH
66
66
foreach (p IN ITEMS LIB BIN INCLUDE DATA CMAKE )
67
67
set (var "INSTALL_${p} _DIR" )
68
68
if (NOT IS_ABSOLUTE "${${var} }" )
69
- set ("${var} " "${CMAKE_INSTALL_PREFIX} /${${var} }" )
69
+ set ("ABSOLUTE_${var} " "${CMAKE_INSTALL_PREFIX} /${${var} }" )
70
+ else ()
71
+ set ("ABSOLUTE_${var} " "${${var} }" )
70
72
endif ()
71
73
endforeach (p )
72
74
@@ -244,7 +246,7 @@ configure_file(mFASTConfig.cmake.in
244
246
@ONLY )
245
247
246
248
# Create the mFASTConfig.cmake for the install tree
247
- file (RELATIVE_PATH REL_INCLUDE_DIR "${INSTALL_CMAKE_DIR } " "${INSTALL_INCLUDE_DIR } " )
249
+ file (RELATIVE_PATH REL_INCLUDE_DIR "${ABSOLUTE_INSTALL_CMAKE_DIR } " "${ABSOLUTE_INSTALL_INCLUDE_DIR } " )
248
250
set (CONF_INCLUDE_DIRS "\$ {MFAST_CMAKE_DIR}/${REL_INCLUDE_DIR} " )
249
251
configure_file (mFASTConfig.cmake.in
250
252
"${PROJECT_BINARY_DIR}${CMAKE_FILES_DIRECTORY} /mFASTConfig.cmake"
You can’t perform that action at this time.
0 commit comments