diff options
author | Even Rouault <even.rouault@spatialys.com> | 2019-07-15 12:19:27 +0200 |
---|---|---|
committer | Even Rouault <even.rouault@spatialys.com> | 2019-07-15 12:19:27 +0200 |
commit | 5e7e9b597f5549a7a015302b8e11ad647b0eeae9 (patch) | |
tree | cd90ee298429ce409e513f3bbd48bed1b3f994a7 | |
parent | a21714f0287174a693e40b7a6b6ad21bf5fd4f09 (diff) | |
download | libtiff-git-5e7e9b597f5549a7a015302b8e11ad647b0eeae9.tar.gz |
CMakeLists.txt: properly set value of HOST_FILLORDER to LSB2MSB for Windows CMake builds
As can be seen in https://ci.appveyor.com/project/rleigh-codelibre/libtiff-didfs/builds/25846668/job/ory5w098j8wcij9x
log, the HOST_FILLORDER is not properly set:
[00:02:58] -- CMAKE_HOST_SYSTEM_PROCESSOR set to AMD64
[00:02:58] -- HOST_FILLORDER set to FILLORDER_MSB2LSB
Ther reason is that we match the "amd64.*" lowercase string whereas
CMAKE_HOST_SYSTEM_PROCESSOR is set to AMD64 uppercase.
-rw-r--r-- | CMakeLists.txt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 721ebb30..f9a43019 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -395,6 +395,8 @@ endif() set(HOST_FILLORDER FILLORDER_MSB2LSB) if(CMAKE_HOST_SYSTEM_PROCESSOR MATCHES "i.*86.*" OR CMAKE_HOST_SYSTEM_PROCESSOR MATCHES "amd64.*" OR + # AMD64 on Windows + CMAKE_HOST_SYSTEM_PROCESSOR MATCHES "AMD64" OR CMAKE_HOST_SYSTEM_PROCESSOR MATCHES "x86_64.*") set(HOST_FILLORDER FILLORDER_LSB2MSB) endif() |