Skip to content

Commit

Permalink
Try setting CMAKE_WINDOWS_KITS_10_DIR
Browse files Browse the repository at this point in the history
  • Loading branch information
Neumann-A committed Dec 11, 2024
1 parent 448a4ad commit 206cb47
Show file tree
Hide file tree
Showing 14 changed files with 18 additions and 8 deletions.
2 changes: 0 additions & 2 deletions ports/clockutils/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ if("${VCPKG_LIBRARY_LINKAGE}" STREQUAL "dynamic")
set(USE_MSBUILD WINDOWS_USE_MSBUILD) # MS Build only required for dynamic builds
endif()

vcpkg_replace_string("${SOURCE_PATH}/CMakeLists.txt" "cmake_minimum_required (VERSION 2.8)" "cmake_minimum_required (VERSION 3.5)")

vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
${USE_MSBUILD}
Expand Down
1 change: 0 additions & 1 deletion ports/geogram/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ else()
endif()
endif()

vcpkg_replace_string("${SOURCE_PATH}/CMakeLists.txt" "cmake_minimum_required (VERSION 3.0)" "cmake_minimum_required (VERSION 3.5)")

vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
Expand Down
2 changes: 0 additions & 2 deletions ports/libosmscout/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS FEATURES
qt5 OSMSCOUT_BUILD_MAP_QT
)

vcpkg_replace_string("${SOURCE_PATH}/CMakeLists.txt" "cmake_minimum_required (VERSION 3.1)" "cmake_minimum_required (VERSION 3.5)")

vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
WINDOWS_USE_MSBUILD
Expand Down
2 changes: 0 additions & 2 deletions ports/libspatialindex/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ vcpkg_from_github(
HEAD_REF master
)

vcpkg_replace_string("${SOURCE_PATH}/CMakeLists.txt" "cmake_minimum_required (VERSION 3.13)" "cmake_minimum_required (VERSION 3.30)")

vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
WINDOWS_USE_MSBUILD
Expand Down
1 change: 0 additions & 1 deletion ports/physx/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,6 @@ endif()

set(cmakeParams ${platformCMakeParams} ${common_params} ${cmakeParams})

vcpkg_replace_string("${SOURCE_PATH}/physx/compiler/public/CMakeLists.txt" "cmake_minimum_required (VERSION 3.7)" "cmake_minimum_required (VERSION 3.20)")

# Finally invoke cmake to configure the PhysX project
vcpkg_cmake_configure(
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@

set(ENV{CMAKE_WINDOWS_KITS_10_DIR} "$ENV{WindowsSdkDir}")
2 changes: 2 additions & 0 deletions triplets/x64-win-msvc/port-customization/clockutils.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@

set(ENV{CMAKE_WINDOWS_KITS_10_DIR} "$ENV{WindowsSdkDir}")
2 changes: 2 additions & 0 deletions triplets/x64-win-msvc/port-customization/geogram.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@

set(ENV{CMAKE_WINDOWS_KITS_10_DIR} "$ENV{WindowsSdkDir}")
2 changes: 2 additions & 0 deletions triplets/x64-win-msvc/port-customization/libosmscout.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@

set(ENV{CMAKE_WINDOWS_KITS_10_DIR} "$ENV{WindowsSdkDir}")
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@

set(ENV{CMAKE_WINDOWS_KITS_10_DIR} "$ENV{WindowsSdkDir}")
2 changes: 2 additions & 0 deletions triplets/x64-win-msvc/port-customization/ms-gltf.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@

set(ENV{CMAKE_WINDOWS_KITS_10_DIR} "$ENV{WindowsSdkDir}")
2 changes: 2 additions & 0 deletions triplets/x64-win-msvc/port-customization/physx.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@

set(ENV{CMAKE_WINDOWS_KITS_10_DIR} "$ENV{WindowsSdkDir}")
2 changes: 2 additions & 0 deletions triplets/x64-win-msvc/port-customization/restc-cpp.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@

set(ENV{CMAKE_WINDOWS_KITS_10_DIR} "$ENV{WindowsSdkDir}")
2 changes: 2 additions & 0 deletions triplets/x64-win-msvc/port-customization/sltbench.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@

set(ENV{CMAKE_WINDOWS_KITS_10_DIR} "$ENV{WindowsSdkDir}")

0 comments on commit 206cb47

Please sign in to comment.