mirror of
https://github.com/zealdocs/zeal.git
synced 2024-08-17 02:00:25 +03:00
parent
89e8445630
commit
3932170024
@ -35,7 +35,12 @@ if(APPLE AND NOT LibArchive_INCLUDE_DIR)
|
||||
set(LibArchive_INCLUDE_DIR "/usr/local/opt/libarchive/include")
|
||||
endif()
|
||||
|
||||
target_link_libraries(Core LibArchive::LibArchive)
|
||||
if (CMAKE_VERSION VERSION_GREATER_EQUAL 3.17.0)
|
||||
target_link_libraries(Core LibArchive::LibArchive)
|
||||
else()
|
||||
include_directories(${LibArchive_INCLUDE_DIRS})
|
||||
target_link_libraries(Core ${LibArchive_LIBRARIES})
|
||||
endif()
|
||||
|
||||
# Required by cpp-httplib.
|
||||
if(NOT WIN32)
|
||||
|
Loading…
Reference in New Issue
Block a user