Skip to content

Commit

Permalink
Make certain the LZVN header is found
Browse files Browse the repository at this point in the history
  • Loading branch information
RJVB committed Jun 10, 2019
1 parent e8db829 commit f3a1789
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ if(APPLE)
if(LZVN_HEADER AND LZVN_LIBRARY)
message(STATUS "Enabling LZVN support")
add_definitions(-DHAS_LZVN)
get_filename_component(LZVN_INCLUDE_DIR ${LZVN_HEADER} DIRECTORY)
if (NOT ${LZVN_INCLUDE_DIR} STREQUAL ${ZLIBP_INCLUDE_DIR})
include_directories(${LZVN_INCLUDE_DIR})
endif()
else()
message(STATUS "LZVN support is disabled")
unset(LZVN_LIBRARY)
Expand Down

0 comments on commit f3a1789

Please sign in to comment.