mirror of
https://github.com/RPCS3/rpcs3.git
synced 2026-03-10 23:45:16 +01:00
cmake: fix build with bundled zlib
This commit is contained in:
parent
d8569a022c
commit
d3f06cd7fd
3
3rdparty/zlib/CMakeLists.txt
vendored
3
3rdparty/zlib/CMakeLists.txt
vendored
|
|
@ -6,7 +6,8 @@ if (USE_SYSTEM_ZLIB)
|
|||
target_link_libraries(3rdparty_zlib INTERFACE ZLIB::ZLIB)
|
||||
target_compile_definitions(3rdparty_zlib INTERFACE -DZLIB_CONST=1)
|
||||
else()
|
||||
option(ZLIB_BUILD_EXAMPLES "Enable Zlib Examples" OFF)
|
||||
option(ZLIB_BUILD_TESTING "Enable Zlib Examples as tests" OFF)
|
||||
option(ZLIB_BUILD_SHARED "Enable building zlib shared library" OFF)
|
||||
message(STATUS "RPCS3: Using builtin ZLIB")
|
||||
set(SKIP_INSTALL_ALL ON)
|
||||
add_subdirectory(zlib EXCLUDE_FROM_ALL)
|
||||
|
|
|
|||
Loading…
Reference in a new issue