Boost unit test 1.34.1 needs an extra define
authorDiane Trout <diane@caltech.edu>
Tue, 29 Jan 2008 02:16:42 +0000 (02:16 +0000)
committerDiane Trout <diane@caltech.edu>
Tue, 29 Jan 2008 02:16:42 +0000 (02:16 +0000)
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

index ee55fec828372bc7135e3ceb92e65f713ea2187d..b5b2a806d3b2e72b94dc0273c56bbae2202ae4b8 100644 (file)
@@ -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)