to make sure node-gyp is able to find a compatible python3
see also
https://github.com/nodejs/node-gyp#configuring-python-dependency
Signed-off-by: Kefu Chai <kchai@redhat.com>
COMMENT "dashboard nodeenv is being installed"
)
add_custom_target(mgr-dashboard-nodeenv
+ COMMAND . ${mgr-dashboard-nodeenv-dir}/bin/activate && npm config set python ${MGR_PYTHON_EXECUTABLE} && deactivate
DEPENDS ${mgr-dashboard-nodeenv-dir}/bin/npm
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
)