aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorAlexander Neumann <alexander.neumann@hamburg.de>2019-08-08 14:18:47 +0200
committerAlexander Neumann <alexander.neumann@hamburg.de>2019-08-08 14:18:47 +0200
commit6eaf7f0f977e62b07515cb17676dcf5d383d357d (patch)
tree77ddd2b5b1c68ac147370168a1d82b491585bc3d /scripts
parent6c7cb5dfdbe8932e589913d7c99943d6f004467c (diff)
downloadvcpkg-6eaf7f0f977e62b07515cb17676dcf5d383d357d.tar.gz
vcpkg-6eaf7f0f977e62b07515cb17676dcf5d383d357d.zip
add definition for host specific path separators
Diffstat (limited to 'scripts')
-rw-r--r--scripts/cmake/vcpkg_common_definitions.cmake10
1 files changed, 10 insertions, 0 deletions
diff --git a/scripts/cmake/vcpkg_common_definitions.cmake b/scripts/cmake/vcpkg_common_definitions.cmake
index 8dc05de3c..f9221f946 100644
--- a/scripts/cmake/vcpkg_common_definitions.cmake
+++ b/scripts/cmake/vcpkg_common_definitions.cmake
@@ -1,3 +1,4 @@
+#Helper variable to identify the Target system. VCPKG_TARGET_IS_<targetname>
if (NOT VCPKG_CMAKE_SYSTEM_NAME OR VCPKG_CMAKE_SYSTEM_NAME STREQUAL "WindowsStore")
set(VCPKG_TARGET_IS_WINDOWS 1)
if(VCPKG_CMAKE_SYSTEM_NAME STREQUAL "WindowsStore")
@@ -12,3 +13,12 @@ elseif(VCPKG_CMAKE_SYSTEM_NAME STREQUAL "Android")
elseif(VCPKG_CMAKE_SYSTEM_NAME STREQUAL "FreeBSD")
set(VCPKG_TARGET_IS_FREEBSD 1)
endif()
+
+#Helper variable to identify the host path seperator.
+if(WIN32)
+ set(VCPKG_HOST_PATH_SEPARATOR ";")
+ set(VCPKG_HOST_PATH_SEPARATOR_ESCAPED "\\;") #sometimes needed to differentiate between the cmake list separator
+elseif(UNIX)
+ set(VCPKG_HOST_PATH_SEPARATOR ":")
+ set(VCPKG_HOST_PATH_SEPARATOR_ESCAPED ":")
+endif() \ No newline at end of file