comparison Resources/CMake/DatabasesPluginConfiguration.cmake @ 394:2fd272ea8f00

fix msvc
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 05 Apr 2023 14:53:36 +0200
parents 743cf36fb051
children 1938ba8fba35
comparison
equal deleted inserted replaced
392:743cf36fb051 394:2fd272ea8f00
86 -DORTHANC_OPTIMAL_VERSION_MINOR=${ORTHANC_OPTIMAL_VERSION_MINOR} 86 -DORTHANC_OPTIMAL_VERSION_MINOR=${ORTHANC_OPTIMAL_VERSION_MINOR}
87 -DORTHANC_OPTIMAL_VERSION_REVISION=${ORTHANC_OPTIMAL_VERSION_REVISION} 87 -DORTHANC_OPTIMAL_VERSION_REVISION=${ORTHANC_OPTIMAL_VERSION_REVISION}
88 ) 88 )
89 89
90 90
91 if (STATIC_BUILD OR NOT USE_SYSTEM_PROTOBUF) 91 if ((STATIC_BUILD OR NOT USE_SYSTEM_PROTOBUF) AND
92 CMAKE_SYSTEM_VERSION STREQUAL "LinuxStandardBase")
92 # This is necessary, at least on LSB (Linux Standard Base), 93 # This is necessary, at least on LSB (Linux Standard Base),
93 # otherwise the following error is generated: "undefined reference 94 # otherwise the following error is generated: "undefined reference
94 # to `__tls_get_addr'" 95 # to `__tls_get_addr'"
95 add_definitions(-DGOOGLE_PROTOBUF_NO_THREADLOCAL=1) 96 add_definitions(-DGOOGLE_PROTOBUF_NO_THREADLOCAL=1)
96 endif() 97 endif()