Skip to content

Commit

Permalink
Merge pull request #1605 from HaoZeke/atomic32bit
Browse files Browse the repository at this point in the history
BLD: Fix the libatomic handling
  • Loading branch information
jajhall authored Feb 4, 2024
2 parents 58a94d5 + d277345 commit e8edffc
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 e8edffc

Please sign in to comment.