)
target_link_libraries( kicad-cli
+diff --git a/bitmap2component/CMakeLists.txt b/bitmap2component/CMakeLists.txt
+index 4c33940d..c0743e97 100644
+--- a/bitmap2component/CMakeLists.txt
++++ b/bitmap2component/CMakeLists.txt
+@@ -54,6 +54,7 @@ target_link_libraries( bitmap2component
+ common
+ ${wxWidgets_LIBRARIES}
+ potrace
++ atomic
+ )
+
+ if( APPLE )
+diff --git a/qa/tests/eeschema/CMakeLists.txt b/qa/tests/eeschema/CMakeLists.txt
+index 0a752bd3..d17543d6 100644
+--- a/qa/tests/eeschema/CMakeLists.txt
++++ b/qa/tests/eeschema/CMakeLists.txt
+@@ -106,6 +106,7 @@ PRIVATE
+ ${GDI_PLUS_LIBRARIES}
+ Boost::headers
+ Boost::unit_test_framework
++ atomic
+ )
+
+ # Eeschema tests, so pretend to be eeschema (for units, etc)
+diff --git a/qa/tests/gerbview/CMakeLists.txt b/qa/tests/gerbview/CMakeLists.txt
+index 635c8911..2d21624e 100644
+--- a/qa/tests/gerbview/CMakeLists.txt
++++ b/qa/tests/gerbview/CMakeLists.txt
+@@ -71,6 +71,7 @@ target_link_libraries( qa_gerbview
+ Boost::headers
+ Boost::unit_test_framework
+ ${PCBNEW_EXTRA_LIBS} # -lrt must follow Boost
++ atomic
+ )
+
+ kicad_add_boost_test( qa_gerbview qa_gerbview )
+diff --git a/qa/tests/pcbnew/CMakeLists.txt b/qa/tests/pcbnew/CMakeLists.txt
+index 8e854e3e..dec4b64f 100644
+--- a/qa/tests/pcbnew/CMakeLists.txt
++++ b/qa/tests/pcbnew/CMakeLists.txt
+@@ -132,6 +132,7 @@ target_link_libraries( qa_pcbnew
+ Boost::headers
+ Boost::unit_test_framework
+ ${PCBNEW_EXTRA_LIBS} # -lrt must follow Boost
++ atomic
+ )
+
+ if( WIN32 )
+diff --git a/qa/tests/spice/CMakeLists.txt b/qa/tests/spice/CMakeLists.txt
+index 26733ec6..0d78ef56 100644
+--- a/qa/tests/spice/CMakeLists.txt
++++ b/qa/tests/spice/CMakeLists.txt
+@@ -93,6 +93,7 @@ PRIVATE
+ ${GDI_PLUS_LIBRARIES}
+ Boost::headers
+ Boost::unit_test_framework
++ atomic
+ )
+
+ if( KICAD_SPICE_QA AND MSVC )
+diff --git a/qa/tools/pcbnew_tools/CMakeLists.txt b/qa/tools/pcbnew_tools/CMakeLists.txt
+index a5c03b06..74311cdc 100644
+--- a/qa/tools/pcbnew_tools/CMakeLists.txt
++++ b/qa/tools/pcbnew_tools/CMakeLists.txt
+@@ -58,6 +58,7 @@ target_link_libraries( qa_pcbnew_tools
+ ${PYTHON_LIBRARIES}
+ Boost::headers
+ ${PCBNEW_EXTRA_LIBS} # -lrt must follow Boost
++ atomic
+ )
+
+ kicad_add_utils_executable( qa_pcbnew_tools )