Skip to content

Commit

Permalink
Merge pull request OSGeo#9109 from rouault/fix_9106
Browse files Browse the repository at this point in the history
FindECW.cmake: make it work for Windows 32-bit builds (fixes OSGeo#9106)
  • Loading branch information
rouault authored Jan 19, 2024
2 parents 070e391 + 4e8e6fa commit fc0ec2b
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions cmake/modules/packages/FindECW.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,17 @@ endif()
include(FindPackageHandleStandardArgs)

if (ECW_VERSION_STRING VERSION_GREATER_EQUAL 5.5)
if("${CMAKE_SYSTEM_PROCESSOR}" MATCHES "(x86_64|AMD64)")
set(ECW_ARCH x64)
else()
if(WIN32)
if (WIN32)
if (CMAKE_SIZEOF_VOID_P EQUAL 4)
set(ECW_ARCH Win32)
else()
set(ECW_ARCH x64)
endif()
else()
if (CMAKE_SIZEOF_VOID_P EQUAL 4)
set(ECW_ARCH x86)
else()
set(ECW_ARCH x64)
endif()
endif()

Expand Down

0 comments on commit fc0ec2b

Please sign in to comment.