From 52ad1e653830ce7cce42cbf4c0eae052420c9d67 Mon Sep 17 00:00:00 2001 From: "akhe@grodansparadis.com" Date: Mon, 15 May 2023 18:04:31 +0200 Subject: [PATCH] Updated info for build on windows --- CMakeLists.txt | 2 +- README.md | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index b3c6cc9..0e71b4f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2,7 +2,7 @@ # # Build instructions for VSCP Works. # -# Copyright (c) 2000-2022 Åke Hedman, the VSCP Project +# Copyright (c) 2000-2023 Åke Hedman, the VSCP Project # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal diff --git a/README.md b/README.md index b712ec3..b4dcc5e 100644 --- a/README.md +++ b/README.md @@ -72,9 +72,9 @@ Now do ## How to build on Windows -### Install Visual Studio 2019 Buildtools +### Install Visual Studio 2022 Buildtools -You can install them from: https://visualstudio.microsoft.com/en/downloads. You find them in the _Tools for Visual Studio 2019_ on the lower part of the page. +You can install them from: https://visualstudio.microsoft.com/en/downloads. You find them in the _Tools for Visual Studio 2022_ on the lower part of the page. In the Visual Studio Installer, select: @@ -89,7 +89,7 @@ You find it here https://cmake.org/install/ You find it here https://gitforwindows.org/ ### Install the vcpkg package manager -Open a Visual Studio 2019 command prompt (_x64 Native Tools Command Prompt_) window and type: +Open a Visual Studio 2022 command prompt (_x64 Native Tools Command Prompt_) window and type: ```bash git clone https://github.com/microsoft/vcpkg.git @@ -126,10 +126,10 @@ The two projects should be cloned on the same directory level. vscp-helper-lib i cd vscp-helper-lib mkdir build cd build - cmake .. -G "Visual Studio 16 2019" -DVCPKG_TARGET_TRIPLET=x64-windows -DCMAKE_TOOLCHAIN_FILE=C:\Users\Administrator\Desktop\Development\vcpkg\scripts\buildsystems\vcpkg.cmake + cmake .. -G "Visual Studio 17 2022" -DVCPKG_TARGET_TRIPLET=x64-windows -DCMAKE_TOOLCHAIN_FILE=C:\Users\Administrator\Desktop\Development\vcpkg\scripts\buildsystems\vcpkg.cmake ``` -The path to the vspkg build script is obviously different in your case. +The path to the vspkg build script (_C:\Users\Administrator\Desktop.._) is obviously different in your case. Now use