From f4bd64233ae875b6b3315fe4fab279335a6adf2b Mon Sep 17 00:00:00 2001 From: Cristian Adam Date: Sat, 18 Jul 2020 17:48:01 +0200 Subject: Build fix with MinGW GCC 9.2.0 (#12084) * Build fix with MinGW GCC 9.2.0 * Fix MinGW tripplets Fixes #12065 * clang-format * Fix unused read_symlink_implementation warning marked as error read_symlink_implementation was used only in copy_symlink_implementation when #if defined(_WIN32) && !VCPKG_USE_STD_FILESYSTEM was true. Removed the warning otherwise. Co-authored-by: JackBoosY --- scripts/ports.cmake | 3 +++ 1 file changed, 3 insertions(+) (limited to 'scripts') diff --git a/scripts/ports.cmake b/scripts/ports.cmake index f4ac28e6a..5e21e3d7d 100644 --- a/scripts/ports.cmake +++ b/scripts/ports.cmake @@ -17,6 +17,9 @@ if((NOT DEFINED VCPKG_ROOT_DIR) ]]) endif() +file(TO_CMAKE_PATH ${BUILDTREES_DIR} BUILDTREES_DIR) +file(TO_CMAKE_PATH ${PACKAGES_DIR} PACKAGES_DIR) + list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_LIST_DIR}/cmake) set(CURRENT_INSTALLED_DIR ${_VCPKG_INSTALLED_DIR}/${TARGET_TRIPLET} CACHE PATH "Location to install final packages") set(SCRIPTS ${CMAKE_CURRENT_LIST_DIR} CACHE PATH "Location to stored scripts") -- cgit v1.2.3