qt5: Fix use of zlib using config.h

This commit is contained in:
Vincent van Ravesteijn 2013-05-14 17:13:59 +02:00
parent 0b9714f8df
commit 4738ba0f1a
2 changed files with 5 additions and 0 deletions

View File

@ -716,6 +716,9 @@ if (CMAKE_GENERATOR MATCHES Xcode)
MESSAGE(STATUS "---- Using XCode compiler CMAKE_XCODE_ATTRIBUTE_GCC_VERSION=${CMAKE_XCODE_ATTRIBUTE_GCC_VERSION}")
ENDIF(CMAKE_GENERATOR MATCHES Xcode)
if (WIN32 AND Qt5Core_FOUND)
set(Z_PREFIX 1)
endif()
# compiler tests, config.h generation
if(MSVC AND NOT LYX_CONFIGURE_CHECKS)

View File

@ -57,6 +57,8 @@
#cmakedefine LYX_USE_TR1 1
#cmakedefine LYX_USE_TR1_REGEX 1
#cmakedefine Z_PREFIX 1
#cmakedefine ASPELL_FOUND 1
#ifdef ASPELL_FOUND
#define USE_ASPELL 1