diff options
author | Garrett Brown <themagnificentmrb@gmail.com> | 2015-07-29 03:27:07 -0700 |
---|---|---|
committer | Garrett Brown <themagnificentmrb@gmail.com> | 2015-10-14 17:58:51 -0700 |
commit | b8864512d455a8d07b3db6b1c4cd8d23bbe274cd (patch) | |
tree | 898dacb4b82931aa5102057741c39c9af02c8ff4 /project/cmake/kodi-config.cmake.in | |
parent | 619ad9df4563293d7eac0af370b959f149363381 (diff) |
[binary addons] Allow overriding install paths
Thanks to wsnipex.
Diffstat (limited to 'project/cmake/kodi-config.cmake.in')
-rw-r--r-- | project/cmake/kodi-config.cmake.in | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/project/cmake/kodi-config.cmake.in b/project/cmake/kodi-config.cmake.in index fc4b1befd1..84b25634cb 100644 --- a/project/cmake/kodi-config.cmake.in +++ b/project/cmake/kodi-config.cmake.in @@ -3,9 +3,15 @@ SET(APP_NAME_LC @APP_NAME_LC@) SET(APP_NAME_UC @APP_NAME_UC@) SET(APP_VERSION_MAJOR @APP_VERSION_MAJOR@) SET(APP_VERSION_MINOR @APP_VERSION_MINOR@) -SET(@APP_NAME_UC@_PREFIX @APP_PREFIX@) -SET(@APP_NAME_UC@_INCLUDE_DIR @APP_INCLUDE_DIR@) -SET(@APP_NAME_UC@_LIB_DIR @APP_LIB_DIR@) +IF(NOT @APP_NAME_UC@_PREFIX) + SET(@APP_NAME_UC@_PREFIX @APP_PREFIX@) +ENDIF() +IF(NOT @APP_NAME_UC@_INCLUDE_DIR) + SET(@APP_NAME_UC@_INCLUDE_DIR @APP_INCLUDE_DIR@) +ENDIF() +IF(NOT @APP_NAME_UC@_LIB_DIR) + SET(@APP_NAME_UC@_LIB_DIR @APP_LIB_DIR@) +ENDIF() IF(NOT WIN32) SET(CMAKE_CXX_FLAGS "$ENV{CXXFLAGS} @CXX11_SWITCH@") ENDIF() |