Skip to content

Commit

Permalink
Restore compatibility with older CMake versions (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
ubruhin authored Mar 4, 2024
1 parent a313cb8 commit ed32a19
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ cmake_minimum_required(VERSION 3.5...3.18)

project(QuaZip VERSION 1.4)

include(cmake/clone-repo.cmake)
#include(cmake/clone-repo.cmake)

set(QUAZIP_LIB_VERSION ${QuaZip_VERSION})
set(QUAZIP_LIB_SOVERSION 1.4.0)
Expand Down
6 changes: 4 additions & 2 deletions quazip/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ project(QuaZip_Library VERSION ${QUAZIP_LIB_VERSION})

include(GNUInstallDirs) # configurable CMAKE_INSTALL_*DIR

cmake_minimum_required(VERSION 3.13)
#cmake_minimum_required(VERSION 3.13)

set(QUAZIP_HEADERS
JlCompress.h
Expand Down Expand Up @@ -72,7 +72,9 @@ if(BUILD_SHARED_LIBS)
else()
target_compile_definitions(${QUAZIP_LIB_TARGET_NAME} PUBLIC QUAZIP_STATIC) # suppress dllimport
endif()
target_link_directories(${QUAZIP_LIB_TARGET_NAME} PUBLIC ${QUAZIP_LBD})
if(NOT (CMAKE_VERSION VERSION_LESS "3.13"))
target_link_directories(${QUAZIP_LIB_TARGET_NAME} PUBLIC ${QUAZIP_LBD})
endif()

include(CMakePackageConfigHelpers)

Expand Down

0 comments on commit ed32a19

Please sign in to comment.