From 343e523763dc7633e38cd835f8957bdac586f1fa Mon Sep 17 00:00:00 2001 From: Matthias Gliwka Date: Mon, 20 Nov 2023 19:19:03 +0200 Subject: [PATCH 1/2] fix missing hs_version.h header (closes #198) --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 024acbaab..d87c0ebe9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -225,6 +225,7 @@ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${EXTRA_CXX_FLAGS}") endif() SET(hs_HEADERS + ${PROJECT_BINARY_DIR}/hs_version.h src/hs.h src/hs_common.h src/hs_compile.h From d611fcbaa8cc9aaa6b163c6941721c7fd751c648 Mon Sep 17 00:00:00 2001 From: Konstantinos Margaritis Date: Mon, 20 Nov 2023 22:39:12 +0200 Subject: [PATCH 2/2] 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()