kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #29093
[PATCH 3/4] Tell the whole case to link dynamically against Boost
---
qa/geometry/CMakeLists.txt | 2 ++
qa/geometry/test_module.cpp | 2 +-
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/qa/geometry/CMakeLists.txt b/qa/geometry/CMakeLists.txt
index 9615e183b..c542d378c 100644
--- a/qa/geometry/CMakeLists.txt
+++ b/qa/geometry/CMakeLists.txt
@@ -24,6 +24,8 @@
find_package(Boost COMPONENTS system filesystem unit_test_framework REQUIRED)
find_package( wxWidgets 3.0.0 COMPONENTS gl aui adv html core net base xml stc REQUIRED )
+add_definitions(-DBOOST_TEST_DYN_LINK)
+
add_executable(qa_geometry
test_module.cpp
test_chamfer_fillet.cpp
diff --git a/qa/geometry/test_module.cpp b/qa/geometry/test_module.cpp
index 79fe6a903..4f99b55ab 100644
--- a/qa/geometry/test_module.cpp
+++ b/qa/geometry/test_module.cpp
@@ -26,7 +26,7 @@
* Main file for the geometry tests to be compiled
*/
-#define BOOST_TEST_DYN_LINK
+#define BOOST_TEST_MAIN
#define BOOST_TEST_MODULE "CPolyLine -> SHAPE_POLY_SET refactor module"
#include <boost/test/unit_test.hpp>
References