Skip to content

Commit 39780b5

Browse files
authored
Merge pull request #1644 from AntelopeIO/atomic_merge_from_1.1
[1.1 -> 1.2] link with libatomic to resolve clang build issue
2 parents a357d4f + f5415ec commit 39780b5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,8 @@ else()
111111
set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-invalid-partial-specialization" )
112112
endif()
113113
endif()
114+
115+
set( CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -latomic")
114116
endif()
115117

116118
if(ENABLE_WERROR)

0 commit comments

Comments
 (0)