summaryrefslogtreecommitdiffstats
path: root/cmake/scripts/common/PathSetup.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake/scripts/common/PathSetup.cmake')
-rw-r--r--cmake/scripts/common/PathSetup.cmake13
1 files changed, 13 insertions, 0 deletions
diff --git a/cmake/scripts/common/PathSetup.cmake b/cmake/scripts/common/PathSetup.cmake
new file mode 100644
index 0000000..4fc888e
--- /dev/null
+++ b/cmake/scripts/common/PathSetup.cmake
@@ -0,0 +1,13 @@
+# Platform path setup
+include(cmake/scripts/${CORE_SYSTEM_NAME}/PathSetup.cmake)
+
+# Fallback install location for dependencies built
+if(NOT DEPENDS_PATH)
+ set(DEPENDS_PATH "${CMAKE_BINARY_DIR}/${CORE_BUILD_DIR}")
+endif()
+
+# If a platform sets a Depends_path for libs, prepend to cmake prefix path
+# for when searching for libs (eg find_package)
+if(DEPENDS_PATH)
+ list(PREPEND CMAKE_PREFIX_PATH ${DEPENDS_PATH})
+endif()