From 986ad539cbcf9a5787e949f21cad158cab12cca2 Mon Sep 17 00:00:00 2001 From: Peter Michael Green Date: Tue, 1 Feb 2022 19:32:25 +0000 Subject: [PATCH] Link with libatomic. Gbp-Pq: Name link-with-libatomic.patch --- eeschema/CMakeLists.txt | 1 + kicad/CMakeLists.txt | 1 + qa/eeschema/CMakeLists.txt | 1 + qa/gerbview/CMakeLists.txt | 1 + qa/pcbnew/CMakeLists.txt | 1 + qa/pcbnew_tools/CMakeLists.txt | 1 + 6 files changed, 6 insertions(+) diff --git a/eeschema/CMakeLists.txt b/eeschema/CMakeLists.txt index 52a11230..e6ccae44 100644 --- a/eeschema/CMakeLists.txt +++ b/eeschema/CMakeLists.txt @@ -371,6 +371,7 @@ target_link_libraries( eeschema gal common ${wxWidgets_LIBRARIES} + -latomic ) # the main Eeschema program, in DSO form. diff --git a/kicad/CMakeLists.txt b/kicad/CMakeLists.txt index 04edf80f..a52b472d 100644 --- a/kicad/CMakeLists.txt +++ b/kicad/CMakeLists.txt @@ -95,6 +95,7 @@ else() common #repeated due to a circular dependency between gal and common ${wxWidgets_LIBRARIES} ${GDI_PLUS_LIBRARIES} + -latomic ) endif() diff --git a/qa/eeschema/CMakeLists.txt b/qa/eeschema/CMakeLists.txt index 6ddc16fe..eb1c8a70 100644 --- a/qa/eeschema/CMakeLists.txt +++ b/qa/eeschema/CMakeLists.txt @@ -95,6 +95,7 @@ target_link_libraries( qa_eeschema markdown_lib ${GDI_PLUS_LIBRARIES} ${Boost_LIBRARIES} + atomic ) target_include_directories( qa_eeschema PUBLIC diff --git a/qa/gerbview/CMakeLists.txt b/qa/gerbview/CMakeLists.txt index c16ecfb2..221a840a 100644 --- a/qa/gerbview/CMakeLists.txt +++ b/qa/gerbview/CMakeLists.txt @@ -62,6 +62,7 @@ target_link_libraries( qa_gerbview ${PYTHON_LIBRARIES} ${Boost_LIBRARIES} # must follow GITHUB ${PCBNEW_EXTRA_LIBS} # -lrt must follow Boost + -latomic ) kicad_add_boost_test( qa_gerbview qa_gerbview ) diff --git a/qa/pcbnew/CMakeLists.txt b/qa/pcbnew/CMakeLists.txt index dbebecf9..908d40f7 100644 --- a/qa/pcbnew/CMakeLists.txt +++ b/qa/pcbnew/CMakeLists.txt @@ -107,6 +107,7 @@ target_link_libraries( qa_pcbnew ${PYTHON_LIBRARIES} ${Boost_LIBRARIES} ${PCBNEW_EXTRA_LIBS} # -lrt must follow Boost + -latomic ) if( WIN32 ) diff --git a/qa/pcbnew_tools/CMakeLists.txt b/qa/pcbnew_tools/CMakeLists.txt index c30dad90..fd5ca7e6 100644 --- a/qa/pcbnew_tools/CMakeLists.txt +++ b/qa/pcbnew_tools/CMakeLists.txt @@ -61,6 +61,7 @@ target_link_libraries( qa_pcbnew_tools ${PYTHON_LIBRARIES} ${Boost_LIBRARIES} ${PCBNEW_EXTRA_LIBS} # -lrt must follow Boost + -latomic ) kicad_add_utils_executable( qa_pcbnew_tools ) -- 2.30.2