dusty-nv / jetson-inference

Hello AI World guide to deploying deep-learning inference networks and deep vision primitives with TensorRT and NVIDIA Jetson.

Home Page:https://developer.nvidia.com/embedded/twodaystoademo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Update top level cmake to avoid build failure

Andreachen0707 opened this issue · comments

In top level cmake, we have:
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Wno-write-strings -Wno-deprecated-declarations") # -std=c++14
should this be modified to
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Wno-write-strings -Wno-error") # -std=c++14

If user has CMAKE_CXX_FLAGS set as -Werror, then jetson-inference will not be able to build. Only deprecated-declarations seems not able to capture all the warning in jetson-inference, there are also unused-parameter etc.