summaryrefslogtreecommitdiffhomepage
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2021-05-19 09:34:21 +0200
committerJo-Philipp Wich <jo@mein.io>2021-05-19 09:36:12 +0200
commitcbc0d78816df398364c1aeec9c36f10bf6cf8e28 (patch)
treebb66e22c839cc39eee2bf2dbfbe62a0ee633dc99 /CMakeLists.txt
parent2c2e603204be7ec96cab7504e3ee6951412ad4bc (diff)
build: let require search patch default to CMAKE_INSTALL_PREFIX
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 1452631..d34d79e 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -18,7 +18,7 @@ OPTION(UCI_SUPPORT "UCI plugin support" ON)
OPTION(LEGACY_SUPPORT "Support deprecated syntax features" ON)
-SET(LIB_SEARCH_PATH "/usr/lib/ucode/*.so:/usr/share/ucode/*.uc:./*.so:./*.uc" CACHE STRING "Default library search path")
+SET(LIB_SEARCH_PATH "${CMAKE_INSTALL_PREFIX}/lib/ucode/*.so:${CMAKE_INSTALL_PREFIX}/share/ucode/*.uc:./*.so:./*.uc" CACHE STRING "Default library search path")
ADD_DEFINITIONS(-DLIB_SEARCH_PATH="${LIB_SEARCH_PATH}")
IF(NOT APPLE)