Skip to content

Commit

Permalink
cmake: fix incorrect variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
SpriteOvO authored and aberaud committed Apr 1, 2022
1 parent 85fd395 commit e753d20
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
12 changes: 6 additions & 6 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -320,8 +320,8 @@ if (OPENDHT_STATIC)
PUBLIC ${CMAKE_THREAD_LIBS_INIT} ${GNUTLS_LIBRARIES} ${Nettle_STATIC_LIBRARIES}
${Jsoncpp_STATIC_LIBRARIES} ${FMT_LIBRARY} ${HTTP_PARSER_LIBRARY}
${OPENSSL_STATIC_LIBRARIES})
if (NOT HAVE_CXX_ATOMICS_RISC_V_WITHOUT_LIB)
target_link_libraries(opendht-static PUBLIC "atomic")
if (NOT HAVE_CXX_ATOMICS_WITHOUT_LIB)
target_link_libraries(opendht-static PUBLIC atomic)
endif ()
else ()
if (OPENDHT_TOOLS)
Expand Down Expand Up @@ -396,8 +396,8 @@ if (OPENDHT_SHARED)
PRIVATE ${GNUTLS_LIBRARIES} ${Nettle_LIBRARIES}
${Jsoncpp_LIBRARIES}
${FMT_LIBRARY} ${HTTP_PARSER_LIBRARY} ${argon2_LIBRARIES})
if (NOT HAVE_CXX_ATOMICS_RISC_V_WITHOUT_LIB)
target_link_libraries(opendht PUBLIC "atomic")
if (NOT HAVE_CXX_ATOMICS_WITHOUT_LIB)
target_link_libraries(opendht PUBLIC atomic)
endif ()
endif ()

Expand Down Expand Up @@ -503,8 +503,8 @@ if (OPENDHT_TESTS)
${GNUTLS_LIBRARIES}
${Jsoncpp_LIBRARIES}
)
if (NOT HAVE_CXX_ATOMICS_RISC_V_WITHOUT_LIB)
target_link_libraries(opendht_unit_tests "atomic")
if (NOT HAVE_CXX_ATOMICS_WITHOUT_LIB)
target_link_libraries(opendht_unit_tests atomic)
endif ()
if (OPENDHT_PROXY_OPENSSL)
target_link_libraries(opendht_unit_tests ${OPENSSL_LIBRARIES})
Expand Down
1 change: 1 addition & 0 deletions cmake/CheckAtomic.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ int main() {
set(CMAKE_REQUIRED_FLAGS ${OLD_CMAKE_REQUIRED_FLAGS})
endfunction(check_working_cxx_atomics64)


# This isn't necessary on MSVC, so avoid command-line switch annoyance
# by only running on GCC-like hosts.
if (LLVM_COMPILER_IS_GCC_COMPATIBLE)
Expand Down

0 comments on commit e753d20

Please sign in to comment.