diff options
| author | Robert Schumacher <roschuma@microsoft.com> | 2019-11-22 09:45:33 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-11-22 09:45:33 -0800 |
| commit | 8831e8f25f1ff6546ee4a5291b91d599421637b3 (patch) | |
| tree | 3e4d92f72752b45c94937aad24e4d50ee1c50d0d /scripts/cmake/vcpkg_common_definitions.cmake | |
| parent | f8288b00d3b4d1e77b30b3d3183ea3602de63d50 (diff) | |
| parent | e2be4512a00ba30ab5081bbbf1e535c014f0df37 (diff) | |
| download | vcpkg-8831e8f25f1ff6546ee4a5291b91d599421637b3.tar.gz vcpkg-8831e8f25f1ff6546ee4a5291b91d599421637b3.zip | |
Merge pull request #7598 from Neumann-A/path_separator
[vcpkg] QoL: add host specific path separator to common definitions
Diffstat (limited to 'scripts/cmake/vcpkg_common_definitions.cmake')
| -rw-r--r-- | scripts/cmake/vcpkg_common_definitions.cmake | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/scripts/cmake/vcpkg_common_definitions.cmake b/scripts/cmake/vcpkg_common_definitions.cmake index 60afeaf36..14cf460af 100644 --- a/scripts/cmake/vcpkg_common_definitions.cmake +++ b/scripts/cmake/vcpkg_common_definitions.cmake @@ -5,6 +5,7 @@ ## ## The following variables are available: ## ```cmake ## VCPKG_TARGET_IS_<target> with <target> being one of the following: WINDOWS, UWP, LINUX, OSX, ANDROID, FREEBSD. only defined if <target> +## VCPKG_HOST_PATH_SEPARATOR Host specific path separator (USAGE: "<something>${VCPKG_HOST_PATH_SEPARATOR}<something>"; only use and pass variables with VCPKG_HOST_PATH_SEPARATOR within "") ## VCPKG_HOST_EXECUTABLE_SUFFIX executable suffix of the host ## VCPKG_TARGET_EXECUTABLE_SUFFIX executable suffix of the target ## VCPKG_TARGET_STATIC_LIBRARY_PREFIX static library prefix for target (same as CMAKE_STATIC_LIBRARY_PREFIX) @@ -38,6 +39,13 @@ elseif(VCPKG_CMAKE_SYSTEM_NAME STREQUAL "FreeBSD") set(VCPKG_TARGET_IS_FREEBSD 1) endif() +#Helper variable to identify the host path separator. +if(CMAKE_HOST_WIN32) + set(VCPKG_HOST_PATH_SEPARATOR ";") +elseif(CMAKE_HOST_UNIX) + set(VCPKG_HOST_PATH_SEPARATOR ":") +endif() + #Helper variables to identify executables on host/target if(CMAKE_HOST_WIN32) set(VCPKG_HOST_EXECUTABLE_SUFFIX ".exe") |
