Skip to content

Commit f556d3d

Browse files
committed
CMake: Add alias targets
1 parent 5f4fd1c commit f556d3d

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@ function(hdr_histogram_add_library NAME LIBRARY_TYPE DO_INSTALL)
4747
PUBLIC
4848
$<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/include>
4949
$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>)
50+
51+
add_library(${PROJECT_NAME}::${NAME} ALIAS ${NAME})
52+
5053
if(DO_INSTALL)
5154
install(
5255
TARGETS ${NAME}

0 commit comments

Comments
 (0)