diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index b92cb4c09..2ffeec1a9 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -562,7 +562,7 @@ if (ZLIB AND ZLIB_FOUND) $ ) target_link_libraries(highs ZLIB::ZLIB) - set(CONF_DEPENDENCIES "include(CMakeFindDependencyMacro)\nfind_dependency(ZLIB)") + set(CONF_DEPENDENCIES "include(CMakeFindDependencyMacro)\nfind_dependency(ZLIB)\nfind_dependency(Threads)") endif() # # on UNIX system the 'lib' prefix is automatically added