Skip to content

Commit

Permalink
added threads dependency to cmake config
Browse files Browse the repository at this point in the history
  • Loading branch information
galabovaa committed May 10, 2024
1 parent 96c3dd2 commit dafeff3
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/CMakeLists.txt
Expand Up @@ -223,14 +223,18 @@ else()
endif()



if(ZLIB AND ZLIB_FOUND)
target_include_directories(highs PRIVATE
$<BUILD_INTERFACE:${HIGHS_SOURCE_DIR}/extern/zstr>
)
target_link_libraries(highs ZLIB::ZLIB)
set(CONF_DEPENDENCIES "include(CMakeFindDependencyMacro)\nfind_dependency(ZLIB)")
set(CONF_DEPS
"include(CMakeFindDependencyMacro)\nfind_dependency(Threads)\nfind_dependency(ZLIB)")
set(CONF_DEPENDENCIES ${CONF_DEPS})
else()
set(CONF_DEPENDENCIES "include(CMakeFindDependencyMacro)\nfind_dependency(Threads)")
endif()


# # on UNIX system the 'lib' prefix is automatically added
# set_target_properties(highs PROPERTIES
Expand Down

0 comments on commit dafeff3

Please sign in to comment.