 +    $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
 +    $<INSTALL_INTERFACE:include>)
  target_link_libraries(libscip PRIVATE
-     ${ZLIB_LIBRARIES}
+-    ${ZLIB_LIBRARIES}
++    $<$<BOOL:${ZLIB}>:ZLIB::ZLIB>
      ${Readline_LIBRARY}
+     ${GMP_LIBRARIES}
+     ${THREAD_LIBRARIES}
+@@ -991,8 +995,16 @@
+     add_sanitizers(scip)
+ endif()
+ 
+-target_link_libraries(scip ${ZLIB_LIBRARIES} ${Readline_LIBRARY} ${GMP_LIBRARIES}
+-   ${ZIMPL_LIBRARIES} ${LPS_LIBRARIES} ${SYM_LIBRARIES} ${THREAD_LIBRARIES} ${NLPI_LIBRARIES} ${PAPILO_IMPORTED_TARGETS})
++target_link_libraries(scip
++  $<$<BOOL:${ZLIB}>:ZLIB::ZLIB>
++  ${Readline_LIBRARY}
++  ${GMP_LIBRARIES}
++  ${ZIMPL_LIBRARIES}
++  ${LPS_LIBRARIES}
++  ${SYM_LIBRARIES}
++  ${THREAD_LIBRARIES}
++  ${NLPI_LIBRARIES}
++  ${PAPILO_IMPORTED_TARGETS})
+ 
+ add_dependencies(libscip scip_update_githash)
+ add_dependencies(scip scip_update_githash)

 if(MSVC)
    # msvc otherwise is not smart enough and tries to link the scip.exe binary as a library
    setLibProperties(libscip "libscip")
@@ -960,6 +961,9 @@
    setLibProperties(libscip "scip")
 endif()
 

diff --color -uarN /tmp/scip-7.0.1/CMakeLists.txt ./CMakeLists.txt
--- /tmp/scip-7.0.1/CMakeLists.txt	2020-06-23 10:40:49.000000000 +0200
+++ ./CMakeLists.txt	2020-07-06 11:09:26.629766590 +0200
@@ -1,5 +1,10 @@
 cmake_minimum_required(VERSION 3.3)
 
