Commit 77baffd5 authored by Ben Boeckel's avatar Ben Boeckel

superbuild: use regexes for project warnings

parent 5dba78c2
set( CTEST_CUSTOM_MAXIMUM_NUMBER_OF_ERRORS 1000 )
set( CTEST_CUSTOM_MAXIMUM_NUMBER_OF_WARNINGS 1000 )
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 ()
##------------------------------------------------------------------------------
## Regular expression for warning exception during build process
set (CTEST_CUSTOM_WARNING_EXCEPTION
${CTEST_CUSTOM_WARNING_EXCEPTION}
"-jN forced in submake: disabling jobserver mode"
"thirdparty/qt5json"
"kml/src/kml"
"molequeue/src/molequeue"
"/usr/bin/libtool"
"/usr/bin/ranlib: file: .*/libtiff.a"
"/usr/bin/ranlib: warning for library: .*/libvil3d_io.a"
......@@ -19,9 +33,6 @@ set (CTEST_CUSTOM_WARNING_EXCEPTION
"cmb/Source/Omicron"
"/usr/bin/ranlib: file: ../../../../lib/libtl_alloc.a.* has no symbols"
"szip/src/szip"
"hdf5/src/hdf5"
"H5LTanalyze.c"
"has different visibility .* in .* and hidden in .*vtkInitializationHelper"
......@@ -29,11 +40,6 @@ set (CTEST_CUSTOM_WARNING_EXCEPTION
"src/.*-build/.*/doc"
#boost
"boost/src/boost"
"threading-multi/windows_file_codecvt.o"
"threading-multi/thread_clock.o"
#Shiboken
"shiboken/src/shiboken"
"CMakeFiles/shiboken.dir"
......@@ -54,14 +60,6 @@ set (CTEST_CUSTOM_WARNING_EXCEPTION
"/usr/bin/ranlib: file: .*libvimt_algo.a"
#windows
"boost\\\\src\\\\boost"
"zeroMQ\\\\src\\\\zeroMQ"
"zeromq\\\\src\\\\zeromq"
"szip\\\\src\\\\szip"
"hdf5\\\\src\\\\hdf5"
"png\\\\src\\\\png"
"kml\\\\src\\\\kml"
"matplotlib\\\\src\\\\matplotlib"
"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:"
......@@ -69,14 +67,6 @@ set (CTEST_CUSTOM_WARNING_EXCEPTION
"..\\\\Python\\\\"
"..\\\\Parser\\\\"
"tss_dll.obj : warning LNK4221:"
"vxl\\\\src\\\\vxl"
"vbl_qsort.obj.*warning LNK4221"
"vcl_vector.*.obj.*warning LNK4221"
"vsl_vector_io.*.obj.*warning LNK4221"
"vbl_io_.*.obj.*warning LNK4221"
"vnl_io_.*obj.*warning LNK4221"
"vil_io_.*.obj.*warning LNK4221"
"vsl_pair_io.*.obj.*warning LNK4221"
"Modules\\\\zlib\\\\gzio.c"
"Modules\\posixmodule.c"
"Modules\\\\_ctypes\\\\libffi_msvc\\\\ffi.c"
......@@ -133,6 +123,17 @@ set (CTEST_CUSTOM_WARNING_EXCEPTION
"cmb-build\\\\source\\\\omicron"
)
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)
# Regular expression for warning exception during build process
# Regular expression for error exceptions during build process
set (CTEST_CUSTOM_ERROR_EXCEPTION
......
......@@ -25,9 +25,6 @@ add_external_project(boost
BUILD_COMMAND ./b2 ${boost_toolset} address-model=${am} linkflags="-headerpad_max_install_names" --build-dir=${boost_build_dir} ${boost_with_args}
INSTALL_COMMAND ./b2 ${boost_toolset} address-model=${am} linkflags="-headerpad_max_install_names" ${boost_with_args} install --prefix=${boost_install_dir}
BUILD_IN_SOURCE 1
LOG_BUILD 1
LOG_INSTALL 1
)
add_extra_cmake_args(
......
......@@ -12,6 +12,4 @@ add_external_project(
-DHDF5_ENABLE_SZIP_ENCODING:BOOL=TRUE
-DHDF5_BUILD_HL_LIB:BOOL=TRUE
-DHDF5_BUILD_WITH_INSTALL_NAME:BOOL=TRUE
LOG_BUILD 1
)
......@@ -25,9 +25,6 @@ add_external_project(boost
BUILD_COMMAND ./b2 ${boost_toolset} --build-dir=${boost_build_dir} address-model=${am} dll-path=${install_location}/lib ${boost_with_args}
INSTALL_COMMAND ./b2 ${boost_toolset} address-model=${am} ${boost_with_args} dll-path=${install_location}/lib install
BUILD_IN_SOURCE 1
LOG_BUILD 1
LOG_INSTALL 1
)
add_extra_cmake_args(
......
......@@ -35,9 +35,6 @@ if(MSVC)
BUILD_COMMAND b2 --build-dir=${boost_build_dir} toolset=${msvc_version} address-model=${am} ${boost_with_args}
INSTALL_COMMAND b2 toolset=${msvc_version} address-model=${am} ${boost_with_args} --prefix=${install_location} install
BUILD_IN_SOURCE 1
LOG_BUILD 1
LOG_INSTALL 1
)
else()
#ninja / mingw has been launched from a shell with the toolset properly specified
......@@ -47,9 +44,6 @@ else()
BUILD_COMMAND b2 --build-dir=${boost_build_dir} address-model=${am} ${boost_with_args}
INSTALL_COMMAND b2 address-model=${am} ${boost_with_args} --prefix=${install_location} install
BUILD_IN_SOURCE 1
LOG_BUILD 1
LOG_INSTALL 1
)
endif()
......
......@@ -9,8 +9,6 @@ add_external_project(
-DHDF5_ENABLE_SZIP_SUPPORT:BOOL=TRUE
-DHDF5_ENABLE_SZIP_ENCODING:BOOL=TRUE
-DHDF5_BUILD_HL_LIB:BOOL=TRUE
LOG_BUILD 1
)
if (MSVC)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment