Skip to content

Commit

Permalink
Fix cmake path (#121)
Browse files Browse the repository at this point in the history
* Fix cmake path

* Fix cmake path
  • Loading branch information
houjun committed Aug 23, 2023
1 parent 0939c0e commit 4ed7881
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CMake/pdc-config.cmake.build.in
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@ if(NOT TARGET "pdc" AND NOT PDC_INSTALL_SKIP_TARGETS)
if(NOT TARGET "mercury")
include(@MERCURY_DIR@/mercury-config.cmake)
endif()
include(${SELF_DIR}/api/pdc-targets.cmake)
include(@PDC_INSTALL_SHARE_DIR@/pdc-targets.cmake)
endif()
2 changes: 1 addition & 1 deletion CMake/pdc-config.cmake.install.in
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@ if(NOT TARGET "pdc" AND NOT PDC_INSTALL_SKIP_TARGETS)
if(NOT TARGET "mercury")
include(@MERCURY_DIR@/mercury-config.cmake)
endif()
include(${SELF_DIR}/pdc-targets.cmake)
include(@PDC_INSTALL_SHARE_DIR@/pdc-targets.cmake)
endif()
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,9 @@ endif()
if(NOT PDC_INSTALL_DATA_DIR)
set(PDC_INSTALL_DATA_DIR ${CMAKE_INSTALL_PREFIX}/share)
endif()
if(NOT PDC_INSTALL_SHARE_DIR)
set(PDC_INSTALL_SHARE_DIR ${CMAKE_INSTALL_PREFIX}/share/cmake/pdc)
endif()

# Setting this ensures that "make install" will leave rpaths to external
# libraries intact on "make install". This ensures that one can install a
Expand Down

0 comments on commit 4ed7881

Please sign in to comment.