From 0cfc7ea27ab6fcf65c7caeaa320f8b20769ce610 Mon Sep 17 00:00:00 2001 From: Diane Trout Date: Tue, 29 Jan 2008 02:16:42 +0000 Subject: [PATCH] Boost unit test 1.34.1 needs an extra define The 1.33.1 version aparently tried to include main() in a shared library, which is aparently doesn't work on every platform. So they needed to add a macro which would expand in to a main() for auto test cases. --- makelib/Platform.cmake | 3 +++ 1 file changed, 3 insertions(+) diff --git a/makelib/Platform.cmake b/makelib/Platform.cmake index ee55fec..b5b2a80 100644 --- a/makelib/Platform.cmake +++ b/makelib/Platform.cmake @@ -18,6 +18,9 @@ ENDIF(PYTHONINTERP_FOUND) MACRO(GET_MUSSA_COMPILE_FLAGS) SET(${return} "") + # this define is needed for linking against the shared + # library version of the boost unit test framework version 1.34.1 + ADD_DEFINITIONS("-DBOOST_TEST_DYN_LINK") IF(APPLE) ADD_DEFINITIONS("-isysroot /Developer/SDKS/MacOSX10.4u.sdk -arch ppc -arch i386 -I/usr/local/include") ENDIF(APPLE) -- 2.30.2