[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [26316] trunk/blender/source/creator/ CMakeLists.txt: CMake: fix MSVC debug build crash at startup when ffmpeg enabled.

Benoit Bolsee benoit.bolsee at online.be
Tue Jan 26 23:50:00 CET 2010


Revision: 26316
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=26316
Author:   ben2610
Date:     2010-01-26 23:49:59 +0100 (Tue, 26 Jan 2010)

Log Message:
-----------
CMake: fix MSVC debug build crash at startup when ffmpeg enabled.

A wrong libraries link order was causing this problem for
some reason. Since a sorting algorithm for linked libraries
was already implemented in Unix, I just enabled it for Windows.

Note about CMake 2.6.0: The Link Library Dependencies option
(Linker General settings panel) is automatically enabled, which
causes the Blender libraries to be linked twice because CMake
will also add them in the Additional Dependencies field.
CMake 2.8.0 does not have this problem, please upgrade if you
are still using CMake 2.6.0.

Modified Paths:
--------------
    trunk/blender/source/creator/CMakeLists.txt

Modified: trunk/blender/source/creator/CMakeLists.txt
===================================================================
--- trunk/blender/source/creator/CMakeLists.txt	2010-01-26 22:24:53 UTC (rev 26315)
+++ trunk/blender/source/creator/CMakeLists.txt	2010-01-26 22:49:59 UTC (rev 26316)
@@ -354,7 +354,7 @@
 	SET(BLENDER_LINK_LIBS ${BLENDER_LINK_LIBS} extern_binreloc)
 ENDIF(CMAKE_SYSTEM_NAME MATCHES "Linux")
 
-IF(UNIX)
+#IF(UNIX)
 	# Sort libraries
 	SET(BLENDER_SORTED_LIBS
 		bf_windowmanager
@@ -451,8 +451,8 @@
 		ENDIF(REMLIB)
 	ENDFOREACH(SORTLIB)
 	TARGET_LINK_LIBRARIES(blender ${BLENDER_SORTED_LIBS})
-ELSE(UNIX)
-	TARGET_LINK_LIBRARIES(blender ${BLENDER_LINK_LIBS})
-ENDIF(UNIX)
+#ELSE(UNIX)
+#	TARGET_LINK_LIBRARIES(blender ${BLENDER_LINK_LIBS})
+#ENDIF(UNIX)
 
 SETUP_LIBLINKS(blender)





More information about the Bf-blender-cvs mailing list