From d97d4b445caa85a91bc6e40b072f73712a20ed36 Mon Sep 17 00:00:00 2001 From: Andrew Kesterson Date: Tue, 12 May 2026 16:50:55 -0400 Subject: [PATCH] Fix library aliasing in cmake --- CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index b906197..21a3b84 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -6,7 +6,6 @@ include(GNUInstallDirs) include(CMakePackageConfigHelpers) find_package(PkgConfig REQUIRED) -find_package(akerror REQUIRED) set(akstdlib_install_cmakedir "${CMAKE_INSTALL_LIBDIR}/cmake/akstdlib") set(prefix ${CMAKE_INSTALL_PREFIX}) @@ -19,6 +18,8 @@ add_library(akstdlib SHARED src/stdlib.c ) +add_library(akstdlib::akstdlib ALIAS akstdlib) + # Specify include directories for the library's headers (if applicable) target_include_directories(akstdlib PUBLIC $