diff options
author | Josh Blum | 2013-07-30 22:43:33 -0700 |
---|---|---|
committer | Josh Blum | 2013-07-30 22:43:33 -0700 |
commit | 8fc35a79f138cc9c5d60affd20ca91767d16927f (patch) | |
tree | 1288c59933a9d71041b0f74427ee7162ee07e62e | |
parent | ea1e706c673e3e7f9363e67064088571e9e34cd5 (diff) | |
download | sandhi-8fc35a79f138cc9c5d60affd20ca91767d16927f.tar.gz sandhi-8fc35a79f138cc9c5d60affd20ca91767d16927f.tar.bz2 sandhi-8fc35a79f138cc9c5d60affd20ca91767d16927f.zip |
gras: export a GRAS_TOOL_MODULE_PATH from TOOL
-rw-r--r-- | cmake/Modules/GRASTool.in.cmake | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/cmake/Modules/GRASTool.in.cmake b/cmake/Modules/GRASTool.in.cmake index 1409671..502b271 100644 --- a/cmake/Modules/GRASTool.in.cmake +++ b/cmake/Modules/GRASTool.in.cmake @@ -146,10 +146,14 @@ function(GRAS_TOOL) RUNTIME DESTINATION ${GRAS_TOOL_MOD_DIR} COMPONENT ${GRAS_TOOL_COMPONENT} # .dll file ) + #export global variables for help locating build targets get_target_property(module_location ${GRAS_TOOL_TARGET} LOCATION) string(REGEX REPLACE "\\$\\(.*\\)" ${CMAKE_BUILD_TYPE} module_location ${module_location}) + list(APPEND GRAS_TOOL_MODULE_LOCATIONS ${module_location}) + set(GRAS_TOOL_MODULE_LOCATIONS ${GRAS_TOOL_MODULE_LOCATIONS} CACHE INTERNAL "") + string(REPLACE ";" "${GRAS_TOOL_PATH_SEP}" GRAS_TOOL_MODULE_PATH "${GRAS_TOOL_MODULE_LOCATIONS}") + set(GRAS_TOOL_MODULE_PATH ${GRAS_TOOL_MODULE_PATH} CACHE INTERNAL "") set(${GRAS_TOOL_TARGET}_LOCATION ${module_location} CACHE INTERNAL "") - endif() #python module install |