]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
cmake: check for "npm" before using it
authorKefu Chai <kchai@redhat.com>
Wed, 7 Mar 2018 07:04:33 +0000 (15:04 +0800)
committerKefu Chai <kchai@redhat.com>
Wed, 7 Mar 2018 09:23:49 +0000 (17:23 +0800)
commitad0d7c89a13a0b2497b5350877580413726d99ad
tree0cdd80fc782f05d94e96e91f554767dad1d6b872
parentfd1e57c2de93f0fce6a3e239ad1c041040185182
cmake: check for "npm" before using it

and allows use to specify the path in which npm is installed. in my
case, if $HOME/.npmrc points "prefix" to ${HOME}/.npm-packages, i will
be able to run

NPM_ROOT=${HOME}/.npm-packages cmake ..

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/pybind/mgr/dashboard_v2/CMakeLists.txt