Skip to content

Commit

Permalink
Update CMakeLists.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
lamarrr authored Oct 4, 2023
1 parent bb260d7 commit c5b6929
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ endif()
# some microcontroller platforms 'arm-gcc-none especially" may not have
# std::thread enabled if so, we remove the thread facilities, this will cause
# compilation errors otherwise, since the classes won't be available
find_library(ATOMIC_LIBRARY NAMES atomic atomic.so.1 libatomic.so.1
find_library(ATOMIC_LIBRARY NAMES atomic atomic.so.1 libatomic.so.1 libatomic.so
libatomic.dylib libatomic.1.dylib libatomic.a)

check_cxx_source_compiles(
Expand All @@ -86,6 +86,7 @@ file(GLOB STX_SOURCE_FILES_LIST src/*.cc)

add_library(stx STATIC ${STX_SOURCE_FILES_LIST})
target_link_libraries(stx Threads::Threads)
target_link_libraries(stx ${ATOMIC_LIBRARY})

add_library(stx::stx ALIAS stx)

Expand Down

0 comments on commit c5b6929

Please sign in to comment.