Skip to content

Commit

Permalink
Fill _IMPORT_ROOT in the CMake target. (#1152)
Browse files Browse the repository at this point in the history
  • Loading branch information
agcapps committed Aug 7, 2023
1 parent 86aebee commit 96c0034
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/cmake/axom-config.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,15 @@ if(NOT AXOM_FOUND)
# Include targets exported by cmake
#----------------------------------------------------------------------------
get_filename_component(AXOM_CMAKE_CONFIG_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)
get_filename_component(_IMPORT_PREFIX "${AXOM_CMAKE_CONFIG_DIR}" PATH)

if(_IMPORT_PREFIX STREQUAL "/")
set(_IMPORT_PREFIX "")
endif()

# we want the import root, which is right above the "lib" prefix
get_filename_component(_IMPORT_ROOT "${_IMPORT_PREFIX}" PATH)

include(${AXOM_CMAKE_CONFIG_DIR}/axom-targets.cmake)

# Create convenience target that bundles all Axom targets (axom)
Expand Down

0 comments on commit 96c0034

Please sign in to comment.