diff --git a/CMakeLists.txt b/CMakeLists.txt index e161810..3275ef4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -43,10 +43,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") diff --git a/bin/apfel-config.in b/bin/apfel-config.in index f9959e0..0269444 100644 --- a/bin/apfel-config.in +++ b/bin/apfel-config.in @@ -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