vcpkg/ports/highs/fix-threads.patch

14 lines
561 B
Diff
Raw Normal View History

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)
$<BUILD_INTERFACE:${HIGHS_SOURCE_DIR}/extern/zstr>
)
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