Skip to content

Commit

Permalink
Merge pull request #201 from VectorCamp/develop
Browse files Browse the repository at this point in the history
 Fix installation problems #201
  • Loading branch information
markos authored Nov 21, 2023
2 parents 1fe672a + 44b893a commit d29730e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -1118,7 +1119,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()

Expand Down Expand Up @@ -1150,7 +1151,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()

Expand Down

0 comments on commit d29730e

Please sign in to comment.