Skip to content

Commit

Permalink
[cmake] Use static libraries with vcpkg on Windows (HarbourMasters#1079)
Browse files Browse the repository at this point in the history
  • Loading branch information
th-2021 authored Aug 7, 2022
1 parent e51e7f3 commit ed93783
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ add_compile_options($<$<CXX_COMPILER_ID:MSVC>:/MP>)
if (CMAKE_SYSTEM_NAME STREQUAL "Windows")
include(cmake/automate-vcpkg.cmake)

set(VCPKG_TRIPLET x64-windows-static)
set(VCPKG_TARGET_TRIPLET x64-windows-static)

vcpkg_bootstrap()
vcpkg_install_packages(zlib bzip2 libpng)
endif()
Expand Down

0 comments on commit ed93783

Please sign in to comment.