1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-06-19 09:11:33 +00:00

MSVC: Fix build with vcpkg's boost

boost-zlib is not present (nor needed) in vcpkg version of boost
There, it is part of boost-iostreams instead.

This was previously reported in:
https://gitlab.com/OpenMW/openmw/-/merge_requests/213#note_348625016
This commit is contained in:
Gleb Mazovetskiy 2021-03-16 01:34:27 +00:00
parent 20852e82b2
commit f460ab2152

View file

@ -344,7 +344,9 @@ set(BOOST_COMPONENTS system filesystem program_options iostreams)
if(WIN32) if(WIN32)
set(BOOST_COMPONENTS ${BOOST_COMPONENTS} locale) set(BOOST_COMPONENTS ${BOOST_COMPONENTS} locale)
if(MSVC) if(MSVC)
set(BOOST_COMPONENTS ${BOOST_COMPONENTS} zlib) # boost-zlib is not present (nor needed) in vcpkg version of boost.
# there, it is part of boost-iostreams instead.
set(BOOST_OPTIONAL_COMPONENTS zlib)
endif(MSVC) endif(MSVC)
endif(WIN32) endif(WIN32)
@ -354,7 +356,7 @@ endif()
set(Boost_NO_BOOST_CMAKE ON) set(Boost_NO_BOOST_CMAKE ON)
find_package(Boost 1.6.2 REQUIRED COMPONENTS ${BOOST_COMPONENTS}) find_package(Boost 1.6.2 REQUIRED COMPONENTS ${BOOST_COMPONENTS} OPTIONAL_COMPONENTS ${BOOST_OPTIONAL_COMPONENTS})
if(OPENMW_USE_SYSTEM_MYGUI) if(OPENMW_USE_SYSTEM_MYGUI)
find_package(MyGUI 3.2.2 REQUIRED) find_package(MyGUI 3.2.2 REQUIRED)
endif() endif()