← Back to team overview

kicad-developers team mailing list archive

[PATCH 6/6] Pass -DBOOST_TEST_DYN_LINK to all parts of test

 

---
 eeschema/qa/CMakeLists.txt  | 3 +++
 eeschema/qa/test_module.cpp | 1 -
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/eeschema/qa/CMakeLists.txt b/eeschema/qa/CMakeLists.txt
index f11329f35..fb99b8613 100644
--- a/eeschema/qa/CMakeLists.txt
+++ b/eeschema/qa/CMakeLists.txt
@@ -34,6 +34,9 @@ add_executable( qa_eagle_plugin
     test_basic.cpp
     )
 
+target_compile_definitions( qa_eagle_plugin
+    PRIVATE -DBOOST_TEST_DYN_LINK )
+
 add_dependencies( qa_eagle_plugin common eeschema_kiface )
 
 target_link_libraries( qa_eagle_plugin
diff --git a/eeschema/qa/test_module.cpp b/eeschema/qa/test_module.cpp
index 69417ab09..50b04dd59 100644
--- a/eeschema/qa/test_module.cpp
+++ b/eeschema/qa/test_module.cpp
@@ -26,7 +26,6 @@
  * Main file for the schematic eagle plugin tests to be compiled
  */
 
-#define BOOST_TEST_DYN_LINK
 #define BOOST_TEST_MODULE "Schematic Eagle plugin"
 
 #include <boost/test/unit_test.hpp>

References