Mark NodeJS headers as system includes to suppress compiler warnings.

This commit is contained in:
Daniel Patterson 2017-05-25 14:28:30 -07:00 committed by Patrick Niklaus
parent 8655c61ec2
commit 4605c35101

View File

@ -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})