- Fixed linking errors of blender player with CMake and XDND enabled
[blender.git] / source / creator / CMakeLists.txt
index fa4ec2852497a5139058dd555a0795e4a88ff864..d9e82048db2d1e345a6a3d24ffad10ca2fff4b40 100644 (file)
@@ -829,7 +829,6 @@ endif()
                extern_minilzo
                extern_lzma
                extern_colamd
-               extern_xdnd
                ge_logic_ketsji
                extern_recastnavigation
                ge_phys_common
@@ -893,6 +892,10 @@ endif()
                list(APPEND BLENDER_SORTED_LIBS extern_carve)
        endif()
 
+       if(WITH_GHOST_XDND)
+               list(APPEND BLENDER_SORTED_LIBS extern_xdnd)
+       endif()
+
        foreach(SORTLIB ${BLENDER_SORTED_LIBS})
                set(REMLIB ${SORTLIB})
                foreach(SEARCHLIB ${BLENDER_LINK_LIBS})