mirror of
https://github.com/eclipse/upm.git
synced 2025-03-15 04:57:30 +03:00
14 lines
337 B
CMake
14 lines
337 B
CMake
![]() |
# Finding and pointing a variable to the npm executable if found
|
||
|
# Only works on Linux systems as of now
|
||
|
|
||
|
find_program(NPM_EXECUTABLE NAMES npm
|
||
|
HINTS
|
||
|
/usr
|
||
|
)
|
||
|
|
||
|
if(NPM_EXECUTABLE)
|
||
|
message(STATUS "NPM Executable found at ${NPM_EXECUTABLE}")
|
||
|
else()
|
||
|
message(ERROR "Unable to find NPM installation, please install NPM")
|
||
|
endif()
|