Skip to content

Commit

Permalink
everestjs: Fix node-addon-api error handling (#200)
Browse files Browse the repository at this point in the history
* everestjs: Let CMake fail when node-addon-api is missing

If node-addon-api can't be installed, let CMake fail. everestjs
has a hard dependency on this package.

Signed-off-by: Daniel Schultz <d.schultz@phytec.de>

* CMakeLists: Replace tab with spaces

Signed-off-by: Daniel Schultz <d.schultz@phytec.de>

---------

Signed-off-by: Daniel Schultz <d.schultz@phytec.de>
  • Loading branch information
dnltz authored Aug 15, 2024
1 parent dadfc93 commit cb9bc8e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 3.14)
project(everest-framework
VERSION 0.16.0
DESCRIPTION "The open operating system for e-mobility charging stations"
LANGUAGES CXX C
LANGUAGES CXX C
)

find_package(everest-cmake 0.4 REQUIRED
Expand Down
2 changes: 1 addition & 1 deletion everestjs/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ if (NOT NODE_ADDON_API_PACKAGE_DIR)
)

if (NPM_INSTALL_NODE_ADDON_API_FAILED)
message(FATAL "Installation of node-addon-api failed")
message(FATAL_ERROR "Installation of node-addon-api failed")
endif ()
endif ()

Expand Down

0 comments on commit cb9bc8e

Please sign in to comment.