From d611fcbaa8cc9aaa6b163c6941721c7fd751c648 Mon Sep 17 00:00:00 2001 From: Konstantinos Margaritis Date: Mon, 20 Nov 2023 22:39:12 +0200 Subject: [PATCH] fix missing installation of static libs --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 024acbaab..15a74bc1b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1118,7 +1118,7 @@ else () endif (ARCH_AARCH64) endif (NOT FAT_RUNTIME) -if (NOT BUILD_SHARED_LIBS) +if (BUILD_STATIC_LIBS) install(TARGETS hs_runtime DESTINATION ${CMAKE_INSTALL_LIBDIR}) endif() @@ -1150,7 +1150,7 @@ if (BUILD_STATIC_LIBS) add_dependencies(hs ragel_Parser) endif () -if (NOT BUILD_SHARED_LIBS) +if (BUILD_STATIC_LIBS) install(TARGETS hs DESTINATION ${CMAKE_INSTALL_LIBDIR}) endif()