From 7cf1e1f3aa28ab92a589ac764563e5e39f92f208 Mon Sep 17 00:00:00 2001 From: Gordon Smith Date: Tue, 27 Feb 2024 08:19:53 +0000 Subject: [PATCH] WIP Signed-off-by: Gordon Smith --- CMakePresets.json | 45 +++++++++++++++++++++++++++++--------- system/jlib/CMakeLists.txt | 2 +- 2 files changed, 36 insertions(+), 11 deletions(-) diff --git a/CMakePresets.json b/CMakePresets.json index a80adb7721b..530a1f43e92 100644 --- a/CMakePresets.json +++ b/CMakePresets.json @@ -75,12 +75,28 @@ "relwithdebinfo" ] }, + { + "name": "windows", + "cacheVariables": { + "USE_OPTIONAL":"OFF", + "CLIENTTOOLS_ONLY":"ON", + "USE_AZURE": "OFF", + "USE_CASSANDRA": "OFF", + "USE_JAVA": "OFF", + "USE_OPENLDAP": "OFF" + }, + "hidden": true + }, { "name": "VS-16", "generator": "Visual Studio 16 2019", "architecture": { "strategy": "set", - "value": "Win32" + "value": "x64" + }, + "toolset": { + "strategy": "set", + "value": "host=x64" }, "hidden": true }, @@ -95,20 +111,13 @@ "strategy": "set", "value": "host=x64" }, - "cacheVariables": { - "USE_OPTIONAL":"OFF", - "CLIENTTOOLS_ONLY":"ON", - "USE_AZURE": "OFF", - "USE_CASSANDRA": "OFF", - "USE_JAVA": "OFF", - "USE_OPENLDAP": "OFF" - }, "hidden": true }, { "name": "vcpkg-VS-16", "inherits": [ "vcpkg", + "windows", "VS-16" ] }, @@ -116,6 +125,7 @@ "name": "vcpkg-VS-17", "inherits": [ "vcpkg", + "windows", "VS-17" ] } @@ -145,6 +155,16 @@ "name": "VS-16-Debug", "configurePreset": "vcpkg-VS-16", "configuration": "Debug", + "jobs": 0, + "nativeToolOptions": [ + "-m" + ] + }, + { + "name": "VS-16-Release", + "configurePreset": "vcpkg-VS-16", + "configuration": "Release", + "jobs": 0, "nativeToolOptions": [ "-m" ] @@ -153,12 +173,16 @@ "name": "VS-17-Debug", "configurePreset": "vcpkg-VS-17", "configuration": "Debug", - "jobs": 0 + "jobs": 0, + "nativeToolOptions": [ + "-m" + ] }, { "name": "VS-17-Release", "configurePreset": "vcpkg-VS-17", "configuration": "Release", + "jobs": 0, "nativeToolOptions": [ "-m" ] @@ -167,6 +191,7 @@ "name": "VS-17-RelWithDebInfo", "configurePreset": "vcpkg-VS-17", "configuration": "RelWithDebInfo", + "jobs": 0, "nativeToolOptions": [ "-m" ] diff --git a/system/jlib/CMakeLists.txt b/system/jlib/CMakeLists.txt index 711d8958b90..2f343839bee 100644 --- a/system/jlib/CMakeLists.txt +++ b/system/jlib/CMakeLists.txt @@ -280,7 +280,7 @@ target_link_libraries ( jlib ZLIB::ZLIB ) endif (WIN32 AND USE_ZLIB) if (WIN32) - target_link_libraries ( jlib ws2_32 mpr.lib Winmm.lib psapi.lib ) + target_link_libraries ( jlib ws2_32 mpr.lib Winmm.lib psapi.lib kernel32.lib ) elseif (("${CMAKE_SYSTEM_NAME}" STREQUAL "Darwin" )) else () target_link_libraries ( jlib rt )