Skip to content

Commit

Permalink
Apparently separate ZLIB is still needed on Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
ioan-chera committed Jul 28, 2024
1 parent a38bdbe commit f6d301c
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -276,13 +276,11 @@ endif()

if(UNIX AND NOT APPLE)
find_package(X11 REQUIRED) # also libXPM
target_link_libraries(eurekasrc PUBLIC ${X11_Xpm_LIB})
find_package(ZLIB REQUIRED) # ZLIB is expected on Linux separately from FLTK
target_link_libraries(eurekasrc PUBLIC ${X11_Xpm_LIB} ${ZLIB_LIBRARIES})
endif()

target_link_libraries(eurekasrc PUBLIC ${OPENGL_LIBRARIES})
if(UNIX AND NOT APPLE) # Linux
target_link_libraries(eurekasrc PUBLIC ${X11_Xpm_LIB})
endif()

target_include_directories(eurekasrc PUBLIC
${PROJECT_SOURCE_DIR}
Expand Down

0 comments on commit f6d301c

Please sign in to comment.