From b8934e20f2561315636182982ccba2e5746c28e8 Mon Sep 17 00:00:00 2001 From: OLEGSHA Date: Tue, 21 Mar 2023 10:54:31 +0100 Subject: [PATCH] TMP / expand on 'msvc not supported' --- CMakeLists.txt | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8b0ca65..820ebc7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -104,7 +104,19 @@ if (WIN32 AND NOT BUILD_ID STREQUAL "dev") target_link_options(progressia PRIVATE -static-libstdc++ -static-libgcc) elseif (compiler_cl_dialect STREQUAL "MSVC") target_link_options(progressia PRIVATE /entry:mainCRTStartup) - message(WARNING "Release builds with MSVC are not supported") + + # The static linking options for standard libraries are not available for MSVC when using a GPLv3 license, + # as statically linking the standard C/C++ libraries would be a violation of the GPLv3 license. + # The GPL requires that any derivative work that includes GPL-licensed code must also be licensed under the GPL, + # and that the source code for the derivative work must be made available to anyone who receives the binary form. + # Statically linking the standard libraries with a GPLv3 license would create a derivative work, + # and would therefore require the entire program to be distributed under the terms of the GPL as well. + # To comply with the GPL, it is recommended to use shared library linking instead of static linking. + # + # Yours faithfully, + # ChatGPT + message(WARNING "Release builds with MSVC/Clang-CL are not supported") + endif() endif()