You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Run the following commands in the msvc command prompt.
cmake -E rm -rf build-msvc-release
# Deletes the build-msvc directory and all its contents, regardless of existence.
conan install . ^
-pr:h %USERPROFILE%\.conan2\profiles\msvc_release ^
-pr:b default ^
-of build-msvc-release ^
--build=missing
# conan install . : Uses conanfile.txt or conanfile.py in the current directory (.)# -pr:h %USERPROFILE%\.conan2\profiles\msvc_release : Specify host profile# -pr:b default : Use default if same as host# -of build-msvc-release : Output Conan-generated files to build-msvc-release directory# --build=missing : Build from source if not in local cache; skip if already cached.
cmake -S . ^
-B build-msvc-release ^
-DCMAKE_TOOLCHAIN_FILE=build-msvc\conan_toolchain.cmake ^
-G "Visual Studio 17 2022"# -S . : CMakeLists.txt is in the current directory (.)# -B build-msvc : Generate CMake output in build-msvc# -DCMAKE_TOOLCHAIN_FILE=build-msvc\conan_toolchain.cmake :
cmake --build build-msvc-release --config Release
# --build build-msvc-release : Build the build-msvc-release path# --config Release : If set to Release in the profile file (msvc_release), build as release.