Libmv: Fix warning about unused parameter in Ceres

Ceres is an external library, so consider it a system header which
makes it so all strict flags are properly ignored for them.
This commit is contained in:
Sergey Sharybin
2020-11-09 12:06:04 +01:00
parent f26e267770
commit 92083772e7
2 changed files with 4 additions and 4 deletions

View File

@@ -51,8 +51,6 @@ if(WITH_LIBMV)
list(APPEND INC list(APPEND INC
${GFLAGS_INCLUDE_DIRS} ${GFLAGS_INCLUDE_DIRS}
${GLOG_INCLUDE_DIRS} ${GLOG_INCLUDE_DIRS}
../../extern/ceres/include
../../extern/ceres/config
../guardedalloc ../guardedalloc
) )
@@ -60,6 +58,8 @@ if(WITH_LIBMV)
${EIGEN3_INCLUDE_DIRS} ${EIGEN3_INCLUDE_DIRS}
${PNG_INCLUDE_DIRS} ${PNG_INCLUDE_DIRS}
${ZLIB_INCLUDE_DIRS} ${ZLIB_INCLUDE_DIRS}
../../extern/ceres/include
../../extern/ceres/config
) )
list(APPEND LIB list(APPEND LIB

View File

@@ -127,8 +127,6 @@ if(WITH_LIBMV)
list(APPEND INC list(APPEND INC
\${GFLAGS_INCLUDE_DIRS} \${GFLAGS_INCLUDE_DIRS}
\${GLOG_INCLUDE_DIRS} \${GLOG_INCLUDE_DIRS}
../../extern/ceres/include
../../extern/ceres/config
../guardedalloc ../guardedalloc
) )
@@ -136,6 +134,8 @@ if(WITH_LIBMV)
\${EIGEN3_INCLUDE_DIRS} \${EIGEN3_INCLUDE_DIRS}
\${PNG_INCLUDE_DIRS} \${PNG_INCLUDE_DIRS}
\${ZLIB_INCLUDE_DIRS} \${ZLIB_INCLUDE_DIRS}
../../extern/ceres/include
../../extern/ceres/config
) )
list(APPEND LIB list(APPEND LIB