Private
Public Access
2
0

cmake: use TARGETS instead of FILES for js module install

This strips the local RPATH when doing a `make install` rather than running
from the build/ dir

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
This commit is contained in:
Brendan Le Foll
2016-11-18 12:58:05 +00:00
parent ad6eb53f81
commit 68e9399c4c

View File

@@ -120,5 +120,5 @@ if (BUILDDOC)
endif ()
endif ()
install (FILES ${CMAKE_CURRENT_BINARY_DIR}/mraa.node
install (TARGETS ${SWIG_MODULE_mraajs_REAL_NAME}
DESTINATION ${NODE_MODULE_INSTALL_PATH})