diff --git a/eeschema/qa/CMakeLists.txt b/eeschema/qa/CMakeLists.txt index f11329f35b..fb99b86135 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 69417ab09c..50b04dd599 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