diff --git a/addon/doxyparse/CMakeLists.txt b/addon/doxyparse/CMakeLists.txt index 7747566..316a233 100644 --- a/addon/doxyparse/CMakeLists.txt +++ b/addon/doxyparse/CMakeLists.txt @@ -22,6 +22,9 @@ if (use_libclang) else() set(CLANG_LIBS libclang clang-cpp ${llvm_libs}) endif() + if ($ENV{DEB_HOST_ARCH} STREQUAL "armel") + set(EXTRA_CLANG_LIBS atomic) + endif() endif() target_link_libraries(doxyparse @@ -39,6 +42,7 @@ ${SQLITE3_LIBRARIES} ${EXTRA_LIBS} ${CLANG_LIBS} ${COVERAGE_LINKER_FLAGS} +${EXTRA_CLANG_LIBS} ) install(TARGETS doxyparse DESTINATION bin) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 9f7e653..5638f32 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -347,6 +347,9 @@ if (use_libclang) set(CLANG_LIBS libclang clang-cpp) endif() target_compile_definitions(doxygen PRIVATE ${LLVM_DEFINITIONS}) + if ($ENV{DEB_HOST_ARCH} STREQUAL "armel") + set(EXTRA_CLANG_LIBS atomic) + endif() endif() target_link_libraries(doxygen PRIVATE @@ -365,6 +368,7 @@ target_link_libraries(doxygen PRIVATE ${CLANG_LIBS} ${COVERAGE_LINKER_FLAGS} ${DOXYGEN_EXTRA_LINK_OPTIONS} + ${EXTRA_CLANG_LIBS} ) set_project_warnings(doxycfg)