fix for building ndof with cmake on osx
authorCampbell Barton <ideasman42@gmail.com>
Sun, 7 Aug 2011 15:06:35 +0000 (15:06 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Sun, 7 Aug 2011 15:06:35 +0000 (15:06 +0000)
CMakeLists.txt

index a0a0359..cf083b8 100644 (file)
@@ -1010,6 +1010,10 @@ elseif(APPLE)
                        if(NOT 3D_CONNEXION_CLIENT_LIBRARY)
                                set(WITH_INPUT_NDOF OFF)
                        endif()
+
+                       if(WITH_INPUT_NDOF)
+                               set(PLATFORM_LINKFLAGS "${PLATFORM_LINKFLAGS} -weak_framework 3DconnexionClient")
+                       endif()
                endif()
 
        else()