Fix compilation error for win32.
authorSergey Sharybin <sergey.vfx@gmail.com>
Tue, 25 Oct 2011 18:13:12 +0000 (18:13 +0000)
committerSergey Sharybin <sergey.vfx@gmail.com>
Tue, 25 Oct 2011 18:13:12 +0000 (18:13 +0000)
That static align trick i've wrote about is still necessary.

intern/itasc/CMakeLists.txt
intern/itasc/SConscript
source/blender/ikplugin/CMakeLists.txt
source/blender/ikplugin/SConscript

index 59075079654bd2755916835b3bfb40d71baabcc2..3d24a0cb8c6556496f4fe65ab7dcaa88957c3ece 100644 (file)
@@ -318,4 +318,8 @@ set(SRC
        ../../extern/Eigen3/Eigen/src/Cholesky/LLT.h
 )
 
+if(WIN32)
+       add_definitions(-DEIGEN_DONT_ALIGN_STATICALLY)
+endif()
+
 blender_add_lib(bf_intern_itasc "${SRC}" "${INC}" "${INC_SYS}")
index c1ad931c665d77f7235808b5c79b4c7b0c18acac..69dddf402287c468f72182e461a511578b48187a 100644 (file)
@@ -9,5 +9,8 @@ incs = '. ../../extern/Eigen3'
 
 defs = []
 
+if env['PLATFORM'] == 'win32':
+    defs.append('EIGEN_DONT_ALIGN_STATICALLY')
+
 env.BlenderLib ('bf_intern_itasc', sources, Split(incs), defs, libtype=['intern','player'], priority=[20,100] )
 
index 518fc9a99ea69170b4bf978cee18a4d3c7bf0826..87b0c6c671a5fe93e6c5aaf50da98c5b2f9942ce 100644 (file)
@@ -57,4 +57,8 @@ if(WITH_IK_ITASC)
        )
 endif()
 
+if(WIN32)
+       add_definitions(-DEIGEN_DONT_ALIGN_STATICALLY)
+endif()
+
 blender_add_lib(bf_ikplugin "${SRC}" "${INC}" "${INC_SYS}")
index 38c53894df8e60e34e4d1868cd706fbdc9e184a1..4cff3399fdce7192ffb039078a7c87a64e15f354 100644 (file)
@@ -8,4 +8,7 @@ incs += ' ../blenkernel ../include ../ikplugin #/intern/itasc #/extern/Eigen3'
 
 defs.append('WITH_IK_ITASC')
 
+if env['PLATFORM'] == 'win32':
+    defs.append('EIGEN_DONT_ALIGN_STATICALLY')
+
 env.BlenderLib ( 'bf_ikplugin', sources, Split(incs), defs, libtype=['core','player'], priority=[180, 190] )