Remove ZLIB_INCLUDE_DIR (use target INTERFACE include)

This commit is contained in:
Luke Street 2021-06-14 17:47:40 -04:00
parent daf8bf0595
commit b0daee99fc
1 changed files with 1 additions and 1 deletions

View File

@ -37,6 +37,6 @@ else ()
else () else ()
target_compile_options(z PRIVATE -Wno-implicit-fallthrough) target_compile_options(z PRIVATE -Wno-implicit-fallthrough)
endif () endif ()
target_include_directories(z INTERFACE ${CMAKE_CURRENT_SOURCE_DIR})
set(ZLIB_LIBRARIES z CACHE STRING "zlib libraries" FORCE) set(ZLIB_LIBRARIES z CACHE STRING "zlib libraries" FORCE)
set(ZLIB_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR} CACHE PATH "zlib include directory" FORCE)
endif () endif ()