Mercurial > hg > orthanc-wsi
changeset 393:0fb1c1e6373f
detect HAVE_SEARCH_H to fix build on Win64
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 08 Apr 2025 16:57:06 +0200 |
parents | e6bd4fa3c71e |
children | 14303bf258b0 |
files | Resources/CMake/LibTiffConfiguration.cmake |
diffstat | 1 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/Resources/CMake/LibTiffConfiguration.cmake Tue Apr 08 15:55:27 2025 +0200 +++ b/Resources/CMake/LibTiffConfiguration.cmake Tue Apr 08 16:57:06 2025 +0200 @@ -78,6 +78,12 @@ add_definitions(-DHAVE_SNPRINTF=1) endif() + # This is needed since WSI 3.2 on physical Win64 BuilBbot + check_symbol_exists(lfind "search.h" HAVE_SEARCH_H) + if (HAVE_SEARCH_H) + add_definitions(-DHAVE_SEARCH_H=1) + endif() + if (MSVC) # The "%" must be escaped if using Visual Studio add_definitions(