cmake was complaining when there was no libs skipped.
authorCampbell Barton <ideasman42@gmail.com>
Fri, 17 Dec 2010 04:41:48 +0000 (04:41 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Fri, 17 Dec 2010 04:41:48 +0000 (04:41 +0000)
source/blenderplayer/CMakeLists.txt
source/creator/CMakeLists.txt

index 53397070be83a0d76ed304af3b43ca68a0bda0af..eecb67e88820db54a79f05c0c96986147040dd43 100644 (file)
@@ -144,8 +144,10 @@ if(UNIX)
                        list(REMOVE_ITEM BLENDER_SORTED_LIBS ${REMLIB})
                endif()
        endforeach()
-       list(SORT REM_MSG)
-       message(STATUS "Player Skipping: (${REM_MSG})")
+       if(REM_MSG)
+               list(SORT REM_MSG)
+               message(STATUS "Player Skipping: (${REM_MSG})")
+       endif()
        target_link_libraries(blenderplayer ${BLENDER_SORTED_LIBS})
 else()
        target_link_libraries(blenderplayer ${BLENDER_LINK_LIBS})
index c3a0b003917de6d8b4b6652793521cd644492364..3328a8a170774b5a1cf5700a7ca32a45b01b7ac4 100644 (file)
@@ -586,7 +586,6 @@ endif()
                list(APPEND BLENDER_SORTED_LIBS bf_quicktime)
        endif()
 
-
        foreach(SORTLIB ${BLENDER_SORTED_LIBS})
                set(REMLIB ${SORTLIB})
                foreach(SEARCHLIB ${BLENDER_LINK_LIBS})
@@ -600,8 +599,10 @@ endif()
                        list(REMOVE_ITEM BLENDER_SORTED_LIBS ${REMLIB})
                endif()
        endforeach()
-       list(SORT REM_MSG)
-       message(STATUS "Blender Skipping: (${REM_MSG})")
+       if(REM_MSG)
+               list(SORT REM_MSG)
+               message(STATUS "Blender Skipping: (${REM_MSG})")
+       endif()
        target_link_libraries(blender ${BLENDER_SORTED_LIBS})
 #else()
 #      target_link_libraries(blender ${BLENDER_LINK_LIBS})