Mercurial > hg > orthanc
comparison Resources/CMake/DcmtkConfigurationStatic-3.6.5.cmake @ 3773:df164cc69529
fix compatibility between MSVC and Windows XP
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 18 Mar 2020 07:57:33 +0100 |
parents | a49d49d945c9 |
children | 6d2b94698995 |
comparison
equal
deleted
inserted
replaced
3771:74889e6f6d68 | 3773:df164cc69529 |
---|---|
183 add_definitions( | 183 add_definitions( |
184 -DDISABLE_NAGLE_ALGORITHM=1 | 184 -DDISABLE_NAGLE_ALGORITHM=1 |
185 ) | 185 ) |
186 | 186 |
187 | 187 |
188 if(${CMAKE_SYSTEM_NAME} STREQUAL "Windows" AND | 188 if (${CMAKE_SYSTEM_NAME} STREQUAL "Windows") |
189 CMAKE_COMPILER_IS_GNUCXX) | 189 # For compatibility with Windows XP, avoid using fiber-local-storage |
190 # This is MinGW | 190 # in log4cplus, but use thread-local-storage instead. Otherwise, |
191 # Windows XP complains about missing "FlsGetValue()" in KERNEL32.dll | |
191 add_definitions( | 192 add_definitions( |
192 -DDCMTK_LOG4CPLUS_AVOID_WIN32_FLS | 193 -DDCMTK_LOG4CPLUS_AVOID_WIN32_FLS |
193 -DDCMTK_LOG4CPLUS_SINGLE_THREADED | 194 ) |
194 ) | 195 |
195 endif() | 196 if (CMAKE_COMPILER_IS_GNUCXX) |
197 # This is MinGW | |
198 add_definitions( | |
199 -DDCMTK_LOG4CPLUS_SINGLE_THREADED | |
200 ) | |
201 endif() | |
202 endif() |