diff options
Diffstat (limited to 'CMakeLists.txt')
| -rw-r--r-- | CMakeLists.txt | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index eec516b..7da9926 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -16,38 +16,6 @@ if(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT) set(CMAKE_INSTALL_PREFIX "/opt/MESA" CACHE PATH "default install path" FORCE) endif() -find_program(CMAKE_CXX_CPPCHECK NAMES cppcheck) -if (CMAKE_CXX_CPPCHECK) - list( - APPEND CMAKE_CXX_CPPCHECK - "--enable=all" - "--error-exitcode=1" - "--suppress=unreachableCode" - "--suppress=unusedFunction" - "--suppress=missingInclude" - "--suppress=uselessAssignmentPtrArg" - "--suppress=unmatchedSuppression" - "--suppress=internalAstError" - "--suppress=unmatchedSuppression" - "--suppress=unreadVariable" - "--suppress=memleakOnRealloc" - "--suppress=redundantAssignment" - "--suppress=constParameter" - "--suppress=unsignedLessThanZero" - "--suppress=variableScope" - "--suppress=cstyleCast" - "--suppress=objectIndex" - "--suppress=shadowVariable" - "--suppress=nullPointerRedundantCheck" - "--suppress=ctunullpointer" - "--suppress=shadowFunction" - "--suppress=unusedStructMember" - ) - set(CMAKE_C_CPPCHECK ${CMAKE_CXX_CPPCHECK}) -else() - message(FATAL_ERROR "Could not find the program cppcheck.") -endif() - #for ASAN set(ASAN_OPTION "OFF" CACHE STRING " set asan type chosen by the user, using OFF as default") set_property(CACHE ASAN_OPTION PROPERTY STRINGS OFF ADDRESS THREAD) |
