Skip to content

Commit

Permalink
WIP: Correctly handle abs dir for findmod for TPL dependencies file (t…
Browse files Browse the repository at this point in the history
…rilinos#10774)

A defect added as part of work on TriBITSPub/TriBITS#299.
  • Loading branch information
bartlettroscoe committed Jul 21, 2022
1 parent d740429 commit 07bae56
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,11 @@ endmacro()
# See `Function call tree for constructing package dependency graph`_
#
macro(tribits_read_external_package_deps_files_add_to_graph tplName)
set(absTplDepsFile "${${PROJECT_NAME}_SOURCE_DIR}/${${tplName}_DEPENDENCIES_FILE}")
if (IS_ABSOLUTE "${${tplName}_DEPENDENCIES_FILE}")
set(absTplDepsFile "${${tplName}_DEPENDENCIES_FILE}")
else()
set(absTplDepsFile "${${PROJECT_NAME}_SOURCE_DIR}/${${tplName}_DEPENDENCIES_FILE}")
endif()
if (EXISTS "${absTplDepsFile}")
tribits_trace_file_processing(TPL INCLUDE "${absTplDepsFile}")
include(${absTplDepsFile})
Expand Down

0 comments on commit 07bae56

Please sign in to comment.