Skip to content

Commit

Permalink
Fix ZLIB being linked even though it has not been found in AUTOBUILD
Browse files Browse the repository at this point in the history
  • Loading branch information
ju-manns committed Jul 13, 2023
1 parent cfd4a4a commit 23611dc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1023,7 +1023,7 @@ target_include_directories(libscip PUBLIC
target_link_libraries(libscip
PRIVATE
${SYM_LIBRARIES}
$<$<BOOL:${ZLIB}>:ZLIB::ZLIB>
$<$<BOOL:${SCIP_WITH_ZLIB}>:ZLIB::ZLIB>
${Readline_LIBRARY}
${GMP_LIBRARIES}
${THREAD_LIBRARIES}
Expand Down Expand Up @@ -1071,7 +1071,7 @@ endif()

target_link_libraries(scip
${SYM_LIBRARIES}
$<$<BOOL:${ZLIB}>:ZLIB::ZLIB>
$<$<BOOL:${SCIP_WITH_ZLIB}>:ZLIB::ZLIB>
${Readline_LIBRARY}
${GMP_LIBRARIES}
${ZIMPL_LIBRARIES}
Expand Down

0 comments on commit 23611dc

Please sign in to comment.