Merge pull request #201 from VectorCamp/develop

Fix installation problems #201
This commit is contained in:
Konstantinos Margaritis 2023-11-21 13:34:40 +02:00 committed by GitHub
commit d29730e1cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -225,6 +225,7 @@ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${EXTRA_CXX_FLAGS}")
endif() endif()
SET(hs_HEADERS SET(hs_HEADERS
${PROJECT_BINARY_DIR}/hs_version.h
src/hs.h src/hs.h
src/hs_common.h src/hs_common.h
src/hs_compile.h src/hs_compile.h
@ -1118,7 +1119,7 @@ else ()
endif (ARCH_AARCH64) endif (ARCH_AARCH64)
endif (NOT FAT_RUNTIME) endif (NOT FAT_RUNTIME)
if (NOT BUILD_SHARED_LIBS) if (BUILD_STATIC_LIBS)
install(TARGETS hs_runtime DESTINATION ${CMAKE_INSTALL_LIBDIR}) install(TARGETS hs_runtime DESTINATION ${CMAKE_INSTALL_LIBDIR})
endif() endif()
@ -1150,7 +1151,7 @@ if (BUILD_STATIC_LIBS)
add_dependencies(hs ragel_Parser) add_dependencies(hs ragel_Parser)
endif () endif ()
if (NOT BUILD_SHARED_LIBS) if (BUILD_STATIC_LIBS)
install(TARGETS hs DESTINATION ${CMAKE_INSTALL_LIBDIR}) install(TARGETS hs DESTINATION ${CMAKE_INSTALL_LIBDIR})
endif() endif()