Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 3 additions & 6 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ if(WITH_ZLIB)
add_definitions( -DUSE_ZLIB )

# make sure that we have a valid zip library
check_library_exists("${LIBZ_LIBRARY}" "gzopen" "" LIBZ_FOUND_SYMBOL)
check_library_exists(LIBZ_LIBRARY "gzopen" "" LIBZ_FOUND_SYMBOL)
if(NOT LIBZ_FOUND_SYMBOL)
# this is odd, but on windows this check always fails! must be a
# bug in the current cmake version so for now only issue this
Expand Down Expand Up @@ -663,12 +663,9 @@ check_include_files (stdlib.h STDC_HEADERS)
check_include_files (string.h STDC_HEADERS)

set(WORDS_BIGENDIAN)
if (UNIX)
include (TestBigEndian)
test_big_endian(WORDS_BIGENDIAN)
if(CMAKE_C_BYTE_ORDER STREQUAL "BIG_ENDIAN")
set(WORDS_BIGENDIAN TRUE)
else()
# test_big_endian seems to fail with nmake (VS 2010) on windows
# however, windows is always little endian, so catch this here
set(WORDS_BIGENDIAN FALSE)
endif()

Expand Down