aboutsummaryrefslogtreecommitdiff
path: root/project/cmake/addons
diff options
context:
space:
mode:
authorh.udo <hudokkow@gmail.com>2016-08-07 17:04:00 +0100
committerh.udo <hudokkow@gmail.com>2016-08-07 19:32:34 +0100
commitdc4d3a43cd41b9367b00ac582b11cb4264a25a21 (patch)
tree98823258661da01eae0cadbaf6feb9820290d581 /project/cmake/addons
parentd1d6053e48ef81154760f5c26cf20f8116e77558 (diff)
[autotools][cmake] XBMCROOT -> CORE_SOURCE_DIR
Diffstat (limited to 'project/cmake/addons')
-rw-r--r--project/cmake/addons/CMakeLists.txt5
1 files changed, 2 insertions, 3 deletions
diff --git a/project/cmake/addons/CMakeLists.txt b/project/cmake/addons/CMakeLists.txt
index 593e718a48..404b215a0e 100644
--- a/project/cmake/addons/CMakeLists.txt
+++ b/project/cmake/addons/CMakeLists.txt
@@ -27,12 +27,11 @@ include(ExternalProject)
### setup all the necessary paths
if(APP_ROOT)
set(CORE_SOURCE_DIR ${APP_ROOT})
+ unset(APP_ROOT)
message(WARNING "APP_ROOT is deprecated. Please use CORE_SOURCE_DIR instead.")
endif()
-if(NOT CORE_SOURCE_DIR AND NOT XBMCROOT)
+if(NOT CORE_SOURCE_DIR)
set(CORE_SOURCE_DIR ${PROJECT_SOURCE_DIR}/../../..)
-elseif(NOT CORE_SOURCE_DIR)
- file(TO_CMAKE_PATH "${XBMCROOT}" CORE_SOURCE_DIR)
else()
file(TO_CMAKE_PATH "${CORE_SOURCE_DIR}" CORE_SOURCE_DIR)
endif()