From 4605c351014df59d5599e948fe77e5b8f9ec51d2 Mon Sep 17 00:00:00 2001 From: Daniel Patterson Date: Thu, 25 May 2017 14:28:30 -0700 Subject: [PATCH] Mark NodeJS headers as system includes to suppress compiler warnings. --- cmake/NodeJS.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/NodeJS.cmake b/cmake/NodeJS.cmake index a76808a35..248d92562 100644 --- a/cmake/NodeJS.cmake +++ b/cmake/NodeJS.cmake @@ -595,7 +595,7 @@ function(add_nodejs_module NAME) PUBLIC ${NODEJS_DEFINITIONS} ) # This properly defines includes for the module - target_include_directories(${NAME} PUBLIC ${NODEJS_INCLUDE_DIRS}) + target_include_directories(${NAME} SYSTEM PUBLIC ${NODEJS_INCLUDE_DIRS}) # Add link flags to the module target_link_libraries(${NAME} ${NODEJS_LIBRARIES})