CTestCustom.cmake.in 5.17 KB
Newer Older
1
2
3
set( CTEST_CUSTOM_MAXIMUM_NUMBER_OF_ERRORS 1000 )
set( CTEST_CUSTOM_MAXIMUM_NUMBER_OF_WARNINGS 1000 )

4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
macro (ignore_project_warnings project)
  list(APPEND CTEST_CUSTOM_WARNING_EXCEPTION
    "${project}/src/${project}"
    "${project}\\\\src\\\\${project}")
  string(TOLOWER "${project}" lower_project)
  if ((APPLE OR WIN32) AND (NOT lower_project STREQUAL project))
    if (WIN32)
      list(APPEND CTEST_CUSTOM_WARNING_EXCEPTION
        "${lower_project}\\\\src\\\\${lower_project}")
    else ()
      list(APPEND CTEST_CUSTOM_WARNING_EXCEPTION
        "${lower_project}/src/${lower_project}")
    endif ()
  endif ()
endmacro ()

20
21
##------------------------------------------------------------------------------
## Regular expression for warning exception during build process
22
23
set (CTEST_CUSTOM_WARNING_EXCEPTION
  ${CTEST_CUSTOM_WARNING_EXCEPTION}
24
25
  "-jN forced in submake: disabling jobserver mode"
  "thirdparty/qt5json"
26
27
  "/usr/bin/libtool"
  "/usr/bin/ranlib: file: .*/libtiff.a"
Jacob Becker's avatar
Jacob Becker committed
28
29
  "/usr/bin/ranlib: warning for library: .*/libvil3d_io.a"
  "/usr/bin/ranlib: warning for library: .*/libvimt_algo.a"
30
  "src.*smtk.*ThirdParty"
Jacob Becker's avatar
Jacob Becker committed
31
  "ld: warning: duplicate dylib"
32
33
  "paraview/src/paraview-build"
  "cmb/Source/Omicron"
Jacob Becker's avatar
Jacob Becker committed
34
  "/usr/bin/ranlib: file: ../../../../lib/libtl_alloc.a.* has no symbols"
35

Jacob Becker's avatar
Jacob Becker committed
36
37
  "H5LTanalyze.c"
  
Jacob Becker's avatar
Jacob Becker committed
38
39
  "has different visibility .* in .* and hidden in .*vtkInitializationHelper"
  "has different visibility .* in .* and hidden in .*CMakeFiles/pqCore.dir/"
Jacob Becker's avatar
Jacob Becker committed
40
41
42

  "src/.*-build/.*/doc"

43
44
45
46
47
  #Shiboken
  "shiboken/src/shiboken"
  "CMakeFiles/shiboken.dir"
  "libapiextractor.a"

48
49
50
  # Boost
  "clang: warning: optimization flag '-finline-functions' is not supported"

51
52
53
54
  #Paraview
  "paraview-build/.*/.*/Documentation"
  
  #vxl
Jacob Becker's avatar
Jacob Becker committed
55
  "vxl/src/vxl"
Jacob Becker's avatar
Jacob Becker committed
56
  "install/include/vxl"
57
58
59
60
61
62
63
  "/usr/bin/ranlib: file: .*libvcl.a"
  "/usr/bin/ranlib: file: .*libvbl.a"
  "/usr/bin/ranlib: file: .*libvsl.a"
  "/usr/bin/ranlib: file: .*libvil1.a"
  "/usr/bin/ranlib: file: .*libvil3d_io.a"
  "/usr/bin/ranlib: file: .*libvimt_algo.a"

64
  #windows
Jacob Becker's avatar
Jacob Becker committed
65
66
67
68
69
70
  "warning C4244: .* : conversion from 'Py_ssize_t' to .*, possible loss of data"
  "warning C4244: .* : conversion from 'INT_PTR' to 'int', possible loss of data"
  "src/ft2font.cpp.* : warning C4267:"
  "..\\\\Modules\\\\"
  "..\\\\Python\\\\"
  "..\\\\Parser\\\\"
Jacob Becker's avatar
Jacob Becker committed
71
  "tss_dll.obj : warning LNK4221:"
72
  "Modules\\\\zlib\\\\gzio.c"
Jacob Becker's avatar
Jacob Becker committed
73
  "Modules\\posixmodule.c"
74
  "Modules\\\\_ctypes\\\\libffi_msvc\\\\ffi.c"
75
  "ttconv/.*.cpp"
Jacob Becker's avatar
Jacob Becker committed
76
77
  "lib/matplotlib"
  "src/image.cpp"
78
  "include\\\\Qt.*"
79
  "paraview\\\\src\\\\paraview\\\\ThirdParty"
80
  "non dll-interface class 'google"
81
82
  "include\\\\qtcore\\\\q.*.h"
  "src\\\\smtk\\\\ThirdParty"
Jacob Becker's avatar
Jacob Becker committed
83
84
85
86
87
88
89
  "qlist.h.* : warning C4127:"
  "qvector.h.* : warning C4127:"
  "qhash.h.* : warning C4127:"
  "qglobal.h.* : warning C4512:"
  "qmap.h.* : warning C4127:"
  "qstringbuilder.h.* : warning C4512:"
  "qmutex.h.* : warning C4512:"
Jacob Becker's avatar
Jacob Becker committed
90
  "vil3d_dicom.obj : warning LNK4221:"
91
  "install\\\\include"
Jacob Becker's avatar
Jacob Becker committed
92
  "shiboken\\\\src\\\\shiboken-build"
Jacob Becker's avatar
Jacob Becker committed
93
  "smtk\\\\src\\\\smtk\\\\ThirdParty"
Jacob Becker's avatar
Jacob Becker committed
94
95
96
97
98
  "warning C4996: 'strcpy'"
  "warning C4996: 'scanf'"
  "warning C4996: 'fopen'"
  "warning C4996: 'sprintf'"
  "warning C4996: 'sscanf'"
Jacob Becker's avatar
Jacob Becker committed
99
  "warning C4996: '_snprintf'"
Jacob Becker's avatar
Jacob Becker committed
100
101
102
103
  "..\\\\PC\\\\_.*.c.* : warning C42"
  "..\\\\Objects\\\\obmalloc.c.* : warning C4244"
  "conversion from 'npy_intp' to 'int', possible loss of data"
  "paraview\\\\.* : warning C4996:"
Jacob Becker's avatar
Jacob Becker committed
104
105
  "paraview\\\\.* : warning C4512:"
  "paraview\\\\.* : warning C4127"
Jacob Becker's avatar
Jacob Becker committed
106
  "Microsoft Visual Studio .*\\\\VC\\\\INCLUDE"
Jacob Becker's avatar
Jacob Becker committed
107
108
  "libs\\\\filesystem\\\\src\\\\.* : warning C4244:"
  "libs\\\\filesystem\\\\src\\\\.* : warning C4267:"
Jacob Becker's avatar
Jacob Becker committed
109
  "libs\\\\thread\\\\src\\\\win32\\\\.* : warning C4267:"
110
  "include\\\\qtcore"
111
112
113
114
115
116
117
118
119
120
  "cmb\\\\src\\\\cmb\\\\Source\\\\Omicron"
  "warning LNK4098: defaultlib 'LIBCMT'"
  "_ttconv.obj : warning LNK4197:"
  "cntr.obj : warning LNK4197:"
  "_delaunay.obj : warning LNK4197:"
  "nxutils.obj : warning LNK4197:"
  "path.obj : warning LNK4197:"
  "backend_agg.obj : warning LNK4197:"
  "_png.obj : warning LNK4197:"
  "_windowing.obj : warning LNK4197:"
Jacob Becker's avatar
Jacob Becker committed
121
122
123
124
  "ParaViewCore\\\\ServerImplementation\\\\Core\\\\vtkPVMessage.pb.cc"
  "ParaViewCore\\\\ServerImplementation\\\\Core\\\\vtkPVMessage.pb.h"
  "paraview\\\\src\\\\paraview\\\\Plugins\\\\H5PartReader\\\\H5Part\\\\src\\\\H5Part.c"
  "Applications\\\\ParaView\\\\paraview_main.cxx.* : warning C4996:"
Jacob Becker's avatar
Jacob Becker committed
125
  "cmb-build\\\\source\\\\omicron"
126
)
127

128
129
130
131
132
133
134
135
136
137
138
ignore_project_warnings(boost)
ignore_project_warnings(gdal)
ignore_project_warnings(hdf5)
ignore_project_warnings(kml)
ignore_project_warnings(molequeue)
ignore_project_warnings(python)
ignore_project_warnings(qt)
ignore_project_warnings(szip)
ignore_project_warnings(vxl)
ignore_project_warnings(zeroMQ)

139
140
141
142
143
# Regular expression for warning exception during build process
# Regular expression for error exceptions during build process
set (CTEST_CUSTOM_ERROR_EXCEPTION
  ${CTEST_CUSTOM_ERROR_EXCEPTION}

144
145
  #clang warning showing up as error
  "in-class initializer for static data member of type 'const double' is a GNU extension"
146

147
  # from free-type
148
  "install/include/freetype2/freetype/internal"
149

Utkarsh Ayachit's avatar
Utkarsh Ayachit committed
150
151
152
  # skip untar errors when unpacking silo.
  "CMake Error.*archive_write_header"
  "CMake Error.*silo-4.8-bsd/config-site"
153
154
155
156

  # skip BLAS and Lapack not found errors
  "BlasNotFoundError"
  "LapackSrcNotFoundError"
157
)