Skip to content

Commit a8e51af

Browse files
committed
Merge branch 'fix-zlib-linking-in-autobuild' into 'v80-bugfix'
Fix ZLIB being linked even though it has not been found in AUTOBUILD See merge request integer/scip!3107
2 parents cfd4a4a + 23611dc commit a8e51af

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: src/CMakeLists.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -1023,7 +1023,7 @@ target_include_directories(libscip PUBLIC
10231023
target_link_libraries(libscip
10241024
PRIVATE
10251025
${SYM_LIBRARIES}
1026-
$<$<BOOL:${ZLIB}>:ZLIB::ZLIB>
1026+
$<$<BOOL:${SCIP_WITH_ZLIB}>:ZLIB::ZLIB>
10271027
${Readline_LIBRARY}
10281028
${GMP_LIBRARIES}
10291029
${THREAD_LIBRARIES}
@@ -1071,7 +1071,7 @@ endif()
10711071

10721072
target_link_libraries(scip
10731073
${SYM_LIBRARIES}
1074-
$<$<BOOL:${ZLIB}>:ZLIB::ZLIB>
1074+
$<$<BOOL:${SCIP_WITH_ZLIB}>:ZLIB::ZLIB>
10751075
${Readline_LIBRARY}
10761076
${GMP_LIBRARIES}
10771077
${ZIMPL_LIBRARIES}

0 commit comments

Comments
 (0)