Skip to content

Commit

Permalink
Force vendor zlib, png, and FreeType on Win32, too
Browse files Browse the repository at this point in the history
This has lead to linker problems if the environment does have standard
versions of zlib/png (like from MSYS2), see discussion in referenced
issue

Closes #559
  • Loading branch information
nabijaczleweli authored and whitequark committed Mar 15, 2020
1 parent 7e33d2d commit e355a09
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -144,11 +144,9 @@ if(WIN32 OR APPLE)
include(FindVendoredPackage)
include(AddVendoredSubdirectory)

if(APPLE)
set(FORCE_VENDORED_ZLIB ON)
set(FORCE_VENDORED_PNG ON)
set(FORCE_VENDORED_Freetype ON)
endif()
set(FORCE_VENDORED_ZLIB ON)
set(FORCE_VENDORED_PNG ON)
set(FORCE_VENDORED_Freetype ON)

find_vendored_package(ZLIB zlib
ZLIB_LIBRARY zlibstatic
Expand Down

0 comments on commit e355a09

Please sign in to comment.