summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/CMakeLists.txt6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 0a1720b..249296b 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -212,8 +212,12 @@ install(FILES ${uca_HDRS}
# --- install pkg-config file
set(prefix ${CMAKE_INSTALL_PREFIX})
+if (CI_INSTALL_PREFIX)
+ set(prefix ${CI_INSTALL_PREFIX})
+endif()
+
set(exec_prefix "\${prefix}")
-set(libdir "${LIB_INSTALL_DIR}")
+set(libdir ${prefix}/${LIB_INSTALL_DIR})
set(includedir "\${prefix}/include")
set(VERSION ${UCA_VERSION_STRING})