]> Creatis software - crea.git/commitdiff
Build librairies as static, to avoid troubles with unaware users.
authorjean-pierre roux <jean-pierre.roux@creatis.insa-lyon.fr>
Fri, 8 Apr 2011 16:27:08 +0000 (16:27 +0000)
committerjean-pierre roux <jean-pierre.roux@creatis.insa-lyon.fr>
Fri, 8 Apr 2011 16:27:08 +0000 (16:27 +0000)
cmake/CREAMacro_DynamicLibraryExport.cmake
cmake/CREAMacro_ManageSharedLibrary.cmake

index 67f9277006637bea73bcf04dad7ddb02a98f0779..00598ef02cc9fba50edea6a31634d36132383b80 100644 (file)
@@ -7,7 +7,8 @@ MACRO(CREA_DYNAMIC_LIBRARY_EXPORT_OPTION LIBRARY_NAME)
 
   # STATIC OR DYNAMIC (SHARED) ? 
   OPTION( ${LIBRARY_NAME}_BUILD_SHARED 
-    "Build ${LIBRARY_NAME} as a shared library (dynamic) ?" ON)
+  #JPR 8 Avr 2011 ON-> OFF, to avoid troubles with unaware users
+    "Build ${LIBRARY_NAME} as a shared library ( i.e. dynamic) ?" OFF)
   IF (${LIBRARY_NAME}_BUILD_SHARED)
     SET(${LIBRARY_NAME}_SHARED SHARED)
     CREA_DEFINE(${LIBRARY_NAME}_BUILD_SHARED)
index bbfabd6b6e1d5437ede5c3836ac810e1887b0b0a..0789f00329d7e3cfa5ebc58a805fcf498ef7342e 100644 (file)
@@ -6,8 +6,9 @@
 MACRO(CREA_MANAGE_SHARED_LIBRARY LIBRARY_NAME)
 
   # STATIC OR DYNAMIC (SHARED) ? 
-  OPTION( ${LIBRARY_NAME}_BUILD_SHARED 
-    "Build ${LIBRARY_NAME} as a shared library (dynamic) ?" ON)
+  OPTION( ${LIBRARY_NAME}_BUILD_SHARED  
+  #JPR 8 Avr 2011 ON-> OFF, to avoid troubles with unaware users
+    "Build ${LIBRARY_NAME} as a shared library (dynamic) ?" OFF)
   IF (${LIBRARY_NAME}_BUILD_SHARED)
     SET(${LIBRARY_NAME}_SHARED SHARED)
     CREA_DEFINE(${LIBRARY_NAME}_BUILD_SHARED)