diff options
| author | Tetsuya Hayashi <tetsu.h@gmail.com> | 2019-09-25 07:58:10 +0900 |
|---|---|---|
| committer | Phil Christensen <philc@microsoft.com> | 2019-09-24 15:58:10 -0700 |
| commit | 726b7a6618f24fb833b597f2f5e86e1d3d0e47ea (patch) | |
| tree | b508b94e11f486401c8b8e6764adea546a123f07 /scripts | |
| parent | 863285f627b75c468c54182047f9a63c51bb5425 (diff) | |
| download | vcpkg-726b7a6618f24fb833b597f2f5e86e1d3d0e47ea.tar.gz vcpkg-726b7a6618f24fb833b597f2f5e86e1d3d0e47ea.zip | |
[ports.cmake] Fixup capitalization inconsistencies of Windows drive letter. (#8304)
CMAKE_CURRENT_LIST_DIR reflect current directory. Thus It can be lowercase drive letter.
The lowercase drive letter cause #8237 issue.
Fixup drive letter to uppercase by using get_filename_component().
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/ports.cmake | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/ports.cmake b/scripts/ports.cmake index 456434f12..cdc0bdd99 100644 --- a/scripts/ports.cmake +++ b/scripts/ports.cmake @@ -18,6 +18,9 @@ else() ]]) endif() +# fixup Windows drive letter to uppercase. +get_filename_component(VCPKG_ROOT_DIR_CANDIDATE ${VCPKG_ROOT_DIR_CANDIDATE} ABSOLUTE) + # Validate VCPKG_ROOT_DIR_CANDIDATE if (NOT EXISTS "${VCPKG_ROOT_DIR_CANDIDATE}/.vcpkg-root") message(FATAL_ERROR "Could not find .vcpkg-root") |
