Skip to content

Commit e9b65bb

Browse files
committed
Fix exported targets file name
1 parent 1fc204b commit e9b65bb

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

cmake/export.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ set(CMP0090 NEW)
66
export(
77
TARGETS libzsync2
88
NAMESPACE zsync2::
9-
FILE libzsync2Targets.cmake
9+
FILE zsync2Targets.cmake
1010
)
1111

1212
# allow import from install tree
1313
# note that the targets must be install(... EXPORT zsync) in order for this to work (consider libzsync2 a namespace)
1414
install(
15-
EXPORT libzsync2
15+
EXPORT zsync2Targets
1616
DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/zsync2
1717
)
1818

src/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ target_link_libraries(zsyncmake2 PRIVATE cpr)
5858
# install targets
5959
install(
6060
TARGETS libzsync2
61-
EXPORT libzsync2
61+
EXPORT zsync2Targets
6262
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
6363
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
6464
PUBLIC_HEADER DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}

0 commit comments

Comments
 (0)