mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-01-18 19:03:02 +08:00
add definition for host specific path separators
This commit is contained in:
parent
6c7cb5dfdb
commit
6eaf7f0f97
@ -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()
|
Loading…
Reference in New Issue
Block a user