Skip to content

Commit

Permalink
Merge pull request #54 from veprbl/pr/CMAKE_INSTALL_FULL_
Browse files Browse the repository at this point in the history
CMakeLists.txt: use CMAKE_INSTALL_FULL_* to support absolute paths in CMAKE_INSTALL_*
  • Loading branch information
scarrazza authored Dec 11, 2023
2 parents 72bf6ec + 5018457 commit 575fb2d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
7 changes: 3 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,9 @@ message(STATUS "APFEL: APFEL_ENABLE_LHAPDF=${APFEL_ENABLE_LHAPDF}")
message(STATUS "APFEL: APFEL_DOWNLOAD_PDFS=${APFEL_DOWNLOAD_PDFS}")

# CONFIG SCRIPT ========================================================
set(prefix ${CMAKE_INSTALL_PREFIX})
set(exec_prefix "${prefix}")
set(includedir "${prefix}/${CMAKE_INSTALL_INCLUDEDIR}")
set(libdir "${prefix}/${CMAKE_INSTALL_LIBDIR}")
set(prefix "${CMAKE_INSTALL_PREFIX}")
set(includedir "${CMAKE_INSTALL_FULL_INCLUDEDIR}")
set(libdir "${CMAKE_INSTALL_FULL_LIBDIR}")
set(PACKAGE_VERSION "${apfel_VERSION}")
configure_file("${PROJECT_SOURCE_DIR}/bin/apfel-config.in" "${PROJECT_BINARY_DIR}/bin/apfel-config")
configure_file("${PROJECT_SOURCE_DIR}/bin/apfel.in" "${PROJECT_BINARY_DIR}/bin/apfel")
Expand Down
1 change: 0 additions & 1 deletion bin/apfel-config.in
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

# These variables need to exist
prefix=@prefix@
exec_prefix=@exec_prefix@

if [[ $# -eq 0 || -n $( echo $* | egrep -- "--help|-h" ) ]]; then
echo
Expand Down

0 comments on commit 575fb2d

Please sign in to comment.