From a5570afd54b55a78c546ab861650b7da9f919ce9 Mon Sep 17 00:00:00 2001 From: Romain Forlot Date: Mon, 9 Jul 2018 13:54:21 +0200 Subject: Be able to overwrite CMAKE variables. Change-Id: Ibf04e6c091bf457d02658dafa555ea16bb657522 Signed-off-by: Romain Forlot --- conf.d/cmake/config.cmake | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/conf.d/cmake/config.cmake b/conf.d/cmake/config.cmake index 790235f..16336ed 100644 --- a/conf.d/cmake/config.cmake +++ b/conf.d/cmake/config.cmake @@ -76,7 +76,7 @@ set (PKG_REQUIRED_LIST # Prefix path where will be installed the files # Default: /usr/local (need root permission to write in) # ------------------------------------------------------ -set(CMAKE_INSTALL_PREFIX /opt/AGL) +set(CMAKE_INSTALL_PREFIX /opt/AGL CACHE PATH "INSTALL PREFIX PATH") # Customize link option # ----------------------------- @@ -133,8 +133,8 @@ add_definitions(-DUSE_API_DYN=1 -DCONTROL_SUPPORT_LUA) # (BUG!!!) as PKG_CONFIG_PATH does not work [should be an env variable] # --------------------------------------------------------------------- -set(CMAKE_PREFIX_PATH ${CMAKE_INSTALL_PREFIX}/lib64/pkgconfig ${CMAKE_INSTALL_PREFIX}/lib/pkgconfig) -set(LD_LIBRARY_PATH ${CMAKE_INSTALL_PREFIX}/lib64 ${CMAKE_INSTALL_PREFIX}/lib) +set(CMAKE_PREFIX_PATH ${CMAKE_INSTALL_PREFIX}/lib64/pkgconfig ${CMAKE_INSTALL_PREFIX}/lib/pkgconfig CACHE PATH "Prefix path") +set(LD_LIBRARY_PATH ${CMAKE_INSTALL_PREFIX}/lib64 ${CMAKE_INSTALL_PREFIX}/lib CACHE STRING "List of directory where search for libraries") # Optional location for config.xml.in # ----------------------------------- -- cgit 1.2.3-korg