From a36034b27546e564a4d34d2cd4963eee885c9ebe Mon Sep 17 00:00:00 2001 From: Siarhei Fedartsou Date: Fri, 26 Aug 2022 10:39:46 +0200 Subject: [PATCH] Build Node bindings on Windows --- include/engine/api/route_api.hpp | 1 + src/nodejs/CMakeLists.txt | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/include/engine/api/route_api.hpp b/include/engine/api/route_api.hpp index 7b4dfc02f..748fae60b 100644 --- a/include/engine/api/route_api.hpp +++ b/include/engine/api/route_api.hpp @@ -28,6 +28,7 @@ #include "util/json_util.hpp" #include +#include #include namespace osrm diff --git a/src/nodejs/CMakeLists.txt b/src/nodejs/CMakeLists.txt index fe2a1fff6..bb49a4060 100644 --- a/src/nodejs/CMakeLists.txt +++ b/src/nodejs/CMakeLists.txt @@ -14,7 +14,7 @@ nodejs_init() message(STATUS "Configuring node_osrm bindings for NodeJs ${NODEJS_VERSION}") add_nodejs_module(node_osrm node_osrm.cpp) -set_target_properties(node_osrm PROPERTIES CXX_STANDARD 14) +set_target_properties(node_osrm PROPERTIES CXX_STANDARD 17) # TODO: we disable clang-tidy for this target, because it causes errors in third-party NodeJs related headers set_target_properties(node_osrm PROPERTIES CXX_CLANG_TIDY "")