Skip to content

Commit

Permalink
BLD: Fix the libatomic handling
Browse files Browse the repository at this point in the history
Co-authored-by: barracuda156 <barracuda156@users.noreply.github.com>
  • Loading branch information
HaoZeke and barracuda156 committed Feb 4, 2024
1 parent 781b2f4 commit d277345
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -817,6 +817,13 @@ find_package(Threads)

if(Threads_FOUND)
include(CheckAtomic)
if(HAVE_CXX_ATOMICS64_WITH_LIB)
if(FAST_BUILD)
target_link_libraries(highs atomic)
else()
target_link_libraries(libhighs atomic)
endif()
endif()
endif()

if(FAST_BUILD)
Expand Down

0 comments on commit d277345

Please sign in to comment.