changeset 394:2fd272ea8f00

fix msvc
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 05 Apr 2023 14:53:36 +0200
parents 743cf36fb051
children a7a029043670 1938ba8fba35
files Resources/CMake/DatabasesPluginConfiguration.cmake
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/Resources/CMake/DatabasesPluginConfiguration.cmake	Wed Apr 05 12:29:40 2023 +0200
+++ b/Resources/CMake/DatabasesPluginConfiguration.cmake	Wed Apr 05 14:53:36 2023 +0200
@@ -88,7 +88,8 @@
   )
 
 
-if (STATIC_BUILD OR NOT USE_SYSTEM_PROTOBUF)
+if ((STATIC_BUILD OR NOT USE_SYSTEM_PROTOBUF) AND
+    CMAKE_SYSTEM_VERSION STREQUAL "LinuxStandardBase")
   # This is necessary, at least on LSB (Linux Standard Base),
   # otherwise the following error is generated: "undefined reference
   # to `__tls_get_addr'"