Skip to content

Commit d29730e

Browse files
authored
Merge pull request #201 from VectorCamp/develop
Fix installation problems #201
2 parents 1fe672a + 44b893a commit d29730e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

CMakeLists.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,7 @@ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${EXTRA_CXX_FLAGS}")
225225
endif()
226226

227227
SET(hs_HEADERS
228+
${PROJECT_BINARY_DIR}/hs_version.h
228229
src/hs.h
229230
src/hs_common.h
230231
src/hs_compile.h
@@ -1118,7 +1119,7 @@ else ()
11181119
endif (ARCH_AARCH64)
11191120
endif (NOT FAT_RUNTIME)
11201121

1121-
if (NOT BUILD_SHARED_LIBS)
1122+
if (BUILD_STATIC_LIBS)
11221123
install(TARGETS hs_runtime DESTINATION ${CMAKE_INSTALL_LIBDIR})
11231124
endif()
11241125

@@ -1150,7 +1151,7 @@ if (BUILD_STATIC_LIBS)
11501151
add_dependencies(hs ragel_Parser)
11511152
endif ()
11521153

1153-
if (NOT BUILD_SHARED_LIBS)
1154+
if (BUILD_STATIC_LIBS)
11541155
install(TARGETS hs DESTINATION ${CMAKE_INSTALL_LIBDIR})
11551156
endif()
11561157

0 commit comments

Comments
 (0)