cmake option to build without iksolver
[blender.git] / source / creator / CMakeLists.txt
index a3a3a13130c4fec9197fa08849d34bbe837cbb12..26ca390239bceb3f8bf020be0b15a4fa17a355b2 100644 (file)
@@ -862,7 +862,6 @@ endif()
                bf_intern_bsp
                bf_intern_decimate
                bf_intern_elbeem
-               bf_intern_ik
                bf_intern_memutil
                bf_intern_guardedalloc
                bf_intern_ctr
@@ -934,6 +933,10 @@ endif()
                list(APPEND BLENDER_SORTED_LIBS bf_intern_guardedalloc_cpp)
        endif()
 
+       if(WITH_IK_SOLVER)
+               list_insert_after(BLENDER_SORTED_LIBS "bf_intern_elbeem" "bf_intern_iksolver")
+       endif()
+
        if(WITH_IK_ITASC)
                list(APPEND BLENDER_SORTED_LIBS bf_intern_itasc)
        endif()