]> OCCT Git - occt.git/commitdiff
Configuration - Static library warning #310
authorPasukhin Dmitry <dpasukhi@opencascade.com>
Fri, 31 Jan 2025 13:37:12 +0000 (14:37 +0100)
committerGitHub <noreply@github.com>
Fri, 31 Jan 2025 13:37:12 +0000 (13:37 +0000)
Add warning message about LGPL 2.1 licensing limitations for static linking

CMakeLists.txt

index 67449a37c117ba36416602372222a0e5dc735ce6..082b6f46fd3295fab5ffc1685b33c0452fa3492e 100644 (file)
@@ -93,6 +93,10 @@ if ("${BUILD_LIBRARY_TYPE}" STREQUAL "Shared")
     set (BUILD_SHARED_LIBRARY_NAME_POSTFIX "" CACHE STRING "${BUILD_SHARED_LIBRARY_NAME_POSTFIX_DESCR}" FORCE)
   endif()
 else()
+  message(AUTHOR_WARNING "OCCT is licensed under LGPL 2.1, which has limitations on"
+                         "static linking with proprietary software."
+                         "OCCT3D offers commercial licensing exceptions to LGPL 2.1."
+                         "Please use our contact form at https://occt3d.com/")
   unset (BUILD_SHARED_LIBS)
   unset (BUILD_SHARED_LIBRARY_NAME_POSTFIX)
 endif()