Skip to content

Commit

Permalink
build: Install headers to system
Browse files Browse the repository at this point in the history
make install will install headers to iotjs headers namespace

Origin: https://github.com/jerryscript-project/iotjs/commit/1253e15f55623d6bd420c36f5092fac9e4393bb7.patch
IoT.js-DCO-1.0-Signed-off-by: Philippe Coval [email protected]
  • Loading branch information
rzr committed Jul 25, 2020
1 parent 20627ad commit 2b6ce9f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cmake/iotjs.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,13 @@ if("${BIN_INSTALL_DIR}" STREQUAL "")
set(BIN_INSTALL_DIR "bin")
endif()

if("${INCLUDE_INSTALL_DIR}" STREQUAL "")
set(INCLUDE_INSTALL_DIR "include/iotjs")
endif()

install(TARGETS ${TARGET_LIB_IOTJS} DESTINATION ${LIB_INSTALL_DIR})
file(GLOB IOTJS_HEADERS include/*.js src/*.h)
install(FILES ${IOTJS_HEADERS} DESTINATION ${INCLUDE_INSTALL_DIR})

if(NOT BUILD_LIB_ONLY)

Expand Down

0 comments on commit 2b6ce9f

Please sign in to comment.