Added @lethosor 's change

develop
David Seguin 2016-09-08 11:28:15 -04:00
parent 36b9ee5cf4
commit 860e584006
No known key found for this signature in database
GPG Key ID: 7B6DF8A9F52A0E88
1 changed files with 1 additions and 3 deletions

@ -277,9 +277,7 @@ endif()
# check for change in arch (32<->64)
if(UNIX)
GET_PROPERTY(DFHACK_CACHED_ARCH CACHE STRING PROPERTY DFHACK_BUILD_ARCH)
if("${DFHACK_BUILD_ARCH}" STREQUAL "${DFHACK_CACHED_ARCH}")
# no change
else()
if(NOT "${DFHACK_BUILD_ARCH}" STREQUAL "${DFHACK_CACHED_ARCH}")
unset(ZLIB_LIBRARY CACHE)
unset(CMAKE_HAVE_PTHREAD_H CACHE)
endif()