Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -183,11 +183,9 @@ IF( NOT SIO_FOUND )
# Unity builds break the bundled zlib used by SIO because several of zlib's
# internal headers are intentionally unguarded and assume a single translation
# unit per source file.
foreach(_lcio_no_unity_tgt IN ITEMS ZLIB zlib zlibstatic zlibshared)
if(TARGET ${_lcio_no_unity_tgt})
set_property(TARGET ${_lcio_no_unity_tgt} PROPERTY UNITY_BUILD OFF)
endif()
endforeach()
if(TARGET ZLIB)
set_property(TARGET ZLIB PROPERTY UNITY_BUILD OFF)
endif()

get_target_property(SIO_VERSION SIO::sio VERSION)
get_target_property(SIO_INCLUDE_DIRS SIO::sio INCLUDE_DIRECTORIES)
Expand Down