mirror of
https://github.com/MultiMC/MultiMC5.git
synced 2024-12-26 09:17:00 +00:00
Attempt to fix quazip build error on Windows
This commit is contained in:
parent
b090070634
commit
81fa7c3c3a
@ -1,11 +1,16 @@
|
|||||||
project(quazip)
|
project(quazip)
|
||||||
|
|
||||||
|
# use QtCreator's QTDIR var
|
||||||
|
IF(DEFINED ENV{QTDIR})
|
||||||
|
SET(Qt5_DIR $ENV{QTDIR})
|
||||||
|
ENDIF()
|
||||||
|
|
||||||
# Find ZLIB for quazip
|
# Find ZLIB for quazip
|
||||||
# Use system zlib on unix and Qt ZLIB on Windows
|
# Use system zlib on unix and Qt ZLIB on Windows
|
||||||
IF(UNIX)
|
IF(UNIX)
|
||||||
find_package(ZLIB REQUIRED)
|
find_package(ZLIB REQUIRED)
|
||||||
ELSE(UNIX)
|
ELSE(UNIX)
|
||||||
SET(ZLIB_INCLUDE_DIRS "${QT_ROOT}/src/3rdparty/zlib" CACHE PATH "Path to ZLIB headers of Qt")
|
SET(ZLIB_INCLUDE_DIRS "${Qt5_DIR}/include/QtZlib" CACHE PATH "Path to ZLIB headers of Qt")
|
||||||
SET(ZLIB_LIBRARIES "")
|
SET(ZLIB_LIBRARIES "")
|
||||||
IF(NOT EXISTS "${ZLIB_INCLUDE_DIRS}/zlib.h")
|
IF(NOT EXISTS "${ZLIB_INCLUDE_DIRS}/zlib.h")
|
||||||
MESSAGE("Please specify a valid zlib include dir")
|
MESSAGE("Please specify a valid zlib include dir")
|
||||||
|
Loading…
Reference in New Issue
Block a user