diff options
author | Romain Forlot <romain.forlot@iot.bzh> | 2018-07-09 13:54:21 +0200 |
---|---|---|
committer | Romain Forlot <romain.forlot@iot.bzh> | 2018-07-10 17:12:30 +0200 |
commit | a5570afd54b55a78c546ab861650b7da9f919ce9 (patch) | |
tree | aa25ef5cded34e3bb0d32452f1c255f020ebf90c /conf.d/cmake | |
parent | e918dbe8c7e1a85f7a9b4c4c6a796826f0e9f10e (diff) |
Be able to overwrite CMAKE variables.
Change-Id: Ibf04e6c091bf457d02658dafa555ea16bb657522
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'conf.d/cmake')
-rw-r--r-- | conf.d/cmake/config.cmake | 6 |
1 files 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 # ----------------------------------- |