Skip to content

Commit

Permalink
Use alias target compatible with older cmake
Browse files Browse the repository at this point in the history
  • Loading branch information
peterNordin committed Dec 15, 2024
1 parent 4bed85a commit d07a1fe
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion dependencies/dcplib.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,12 @@ find_package(Threads)
find_package(ICU MODULE COMPONENTS uc data)
find_package(XercesC CONFIG PATHS ${local_xerces_dir} NO_DEFAULT_PATH)
find_package(libzip CONFIG PATHS ${local_libzip_dir} NO_DEFAULT_PATH)
add_library(ZIP::ZIP ALIAS libzip::zip)

#add_library(ZIP::ZIP ALIAS libzip::zip)
# add alias compatible with older cmake versions
add_library(ZIP::ZIP INTERFACE IMPORTED)
set_target_properties(ZIP::ZIP PROPERTIES INTERFACE_LINK_LIBRARIES libzip::zip)

# TODO Use proper ASIO lookup and installation
add_library(ASIO::ASIO INTERFACE IMPORTED)
set_target_properties(ASIO::ASIO PROPERTIES
Expand Down

0 comments on commit d07a1fe

Please sign in to comment.