set VCPKG_TARGET_TRIPLET to x64-windows-static-md

This commit is contained in:
MihailRis 2024-06-11 23:00:09 +03:00
parent e07ddaee38
commit 825eec049d

View File

@ -38,6 +38,7 @@ if(MSVC)
set(CMAKE_BUILD_TYPE Release CACHE STRING "Build type" FORCE)
endif()
if((CMAKE_BUILD_TYPE EQUAL "Release") OR (CMAKE_BUILD_TYPE EQUAL "RelWithDebInfo"))
set(VCPKG_TARGET_TRIPLET "x64-windows-static-md")
set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Release>:Release>")
target_compile_options(${PROJECT_NAME} PRIVATE /W4 /MT /O2)
else()