Skip to content

Commit

Permalink
fixed alias target
Browse files Browse the repository at this point in the history
  • Loading branch information
mdorier committed Dec 4, 2024
1 parent cea6a39 commit dc8c4eb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ option (ENABLE_PYTHON "Build with Python support" OFF)
# library version set here (e.g. for shared libs).
set (FLOCK_VERSION_MAJOR 0)
set (FLOCK_VERSION_MINOR 5)
set (FLOCK_VERSION_PATCH 0)
set (FLOCK_VERSION_PATCH 1)
set (FLOCK_VERSION
"${FLOCK_VERSION_MAJOR}.${FLOCK_VERSION_MINOR}.${FLOCK_VERSION_PATCH}")

Expand Down
9 changes: 6 additions & 3 deletions src/flock-config.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ endif ()
# FIXME: Any other dependencies should be added here

include ("${CMAKE_CURRENT_LIST_DIR}/flock-targets.cmake")

add_library (flock::server ALIAS flock-server)
add_library (flock::client ALIAS flock-client)
if (NOT TARGET flock::server)
add_library (flock::server ALIAS flock-server)
endif ()
if (NOT TARGET flock::client)
add_library (flock::client ALIAS flock-client)
endif ()

0 comments on commit dc8c4eb

Please sign in to comment.