[Orxonox-commit 3684] r8365 - code/trunk/src

rgrieder at orxonox.net rgrieder at orxonox.net
Sat Apr 30 21:27:03 CEST 2011


Author: rgrieder
Date: 2011-04-30 21:27:02 +0200 (Sat, 30 Apr 2011)
New Revision: 8365

Modified:
   code/trunk/src/CMakeLists.txt
Log:
Use static linking for the externals to reduce code size as well as number of libraries to load. Plus, we can only link to OIS and ENet dynamically on all platforms. So make it all static ;)

Modified: code/trunk/src/CMakeLists.txt
===================================================================
--- code/trunk/src/CMakeLists.txt	2011-04-30 03:23:22 UTC (rev 8364)
+++ code/trunk/src/CMakeLists.txt	2011-04-30 19:27:02 UTC (rev 8365)
@@ -60,7 +60,7 @@
 ADD_COMPILER_FLAGS("-DTIXML_USE_TICPP")
 
 # Default linking for externals is SHARED
-SET(ORXONOX_EXTERNAL_LINK_MODE SHARED CACHE STRING "Link mode for external libraries that we build ourselves. Note: on Windows, some libraries cannot be linked shared.")
+SET(ORXONOX_EXTERNAL_LINK_MODE "STATIC" CACHE STRING "Link mode for external libraries that we build ourselves. Note: on Windows, some libraries cannot be linked shared.")
 
 IF(ORXONOX_EXTERNAL_LINK_MODE STREQUAL "SHARED")
   SET(_external_shared_link TRUE)




More information about the Orxonox-commit mailing list