mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-27 12:35:46 +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:
parent
20852e82b2
commit
f460ab2152
@ -344,7 +344,9 @@ set(BOOST_COMPONENTS system filesystem program_options iostreams)
|
||||
if(WIN32)
|
||||
set(BOOST_COMPONENTS ${BOOST_COMPONENTS} locale)
|
||||
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(WIN32)
|
||||
|
||||
@ -354,7 +356,7 @@ endif()
|
||||
|
||||
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)
|
||||
find_package(MyGUI 3.2.2 REQUIRED)
|
||||
endif()
|
||||
|
Loading…
x
Reference in New Issue
Block a user