fix zlib headers / linking for windows

This commit is contained in:
Joshua Warner 2014-07-29 15:31:17 -06:00
parent ef3f77695c
commit d8e0f5cc06
2 changed files with 4 additions and 3 deletions

View File

@ -13,3 +13,6 @@ ELSE()
SET(PLATFORM_CXX_FLAGS "-Wall -Werror -fno-exceptions -std=c++0x") SET(PLATFORM_CXX_FLAGS "-Wall -Werror -fno-exceptions -std=c++0x")
SET(PLATFORM_LIBS ${PLATFORM_LIBS} pthread dl) SET(PLATFORM_LIBS ${PLATFORM_LIBS} pthread dl)
ENDIF() ENDIF()
find_package(ZLIB REQUIRED)
include_directories(${ZLIB_INCLUDE_DIRS})

View File

@ -4,8 +4,6 @@ target_link_libraries(type_generator
avian_jvm_finder avian_jvm_finder
avian_system avian_system
avian_util avian_util
z ${ZLIB_LIBRARIES}
pthread
dl
${PLATFORM_LIBS} ${PLATFORM_LIBS}
) )