Browse Source

Build shared libs by default in cmake builds.

kestred 12 years ago
parent
commit
f5fbe25724
1 changed files with 7 additions and 0 deletions
  1. 7 0
      dtool/Config.cmake

+ 7 - 0
dtool/Config.cmake

@@ -54,6 +54,13 @@ else()
 endif()
 
 
+# Are we building with static or dynamic linking?
+option(BUILD_SHARED_LIBS
+  "Causes subpackes to be built separately -- setup for dynamic linking.
+Utilities/tools/binaries/etc are then dynamically linked to the
+libraries instead of being statically linked." ON)
+
+
 # The character used to separate components of an OS-specific
 # directory name depends on the platform (it is '/' on Unix, '\' on
 # Windows).  That character selection is hardcoded into Panda and