Skip to content
Snippets Groups Projects

contrib: zlib: fix example build

Closed Steve Lhomme requested to merge robUx4/vlc:zlib-fix into master
2 files
+ 3
3
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -17,11 +17,11 @@ index e6fbb37..3fa3046 100644
endif()
-if(UNIX)
+if(UNIX OR MINGW)
+if(UNIX OR MINGW OR EMSCRIPTEN)
# On unix-like platforms the library is almost always called libz
set_target_properties(zlib zlibstatic PROPERTIES OUTPUT_NAME z)
- if(NOT APPLE)
+ if(NOT APPLE AND NOT MINGW)
+ if(NOT APPLE AND NOT MINGW AND NOT EMSCRIPTEN)
set_target_properties(zlib PROPERTIES LINK_FLAGS "-Wl,--version-script,\"${CMAKE_CURRENT_SOURCE_DIR}/zlib.map\"")
endif()
elseif(BUILD_SHARED_LIBS AND WIN32)
Loading