Boost unit test 1.34.1 needs an extra define
[mussa.git] / 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)