Merge pull request #2052 from lrineau/Installation-fix_check_headers-GF

Fix the `check_headers` target
This commit is contained in:
Laurent Rineau 2017-04-14 18:31:56 +02:00
commit 069820329e
13 changed files with 55 additions and 18 deletions

View File

@ -59,6 +59,8 @@ compiler:
- gcc
addons:
apt:
sources:
- sourceline: 'ppa:ppsspp/cmake'
packages:
- zsh
- cmake

View File

@ -54,7 +54,11 @@ do
if [ "$ARG" = "CHECK" ]
then
zsh $ROOT/Scripts/developer_scripts/test_merge_of_branch HEAD
mkdir -p build-travis
pushd build-travis
cmake -DCGAL_ENABLE_CHECK_HEADERS=ON ../..
make -j2 check_headers
popd
#parse current matrix and check that no package has been forgotten
old_IFS=$IFS
IFS=$'\n'

View File

@ -19,6 +19,8 @@ compiler:
- gcc
addons:
apt:
sources:
- sourceline: 'ppa:ppsspp/cmake'
packages:
- zsh
- cmake

View File

@ -21,11 +21,12 @@
#define CGAL_SPLIT_GRAPH_INTO_POLYLINES
#include <map>
#include <set>
#include <vector>
#include <utility>
#include <boost/foreach.hpp>
#include <boost/graph/adjacency_list.hpp>
#include <iostream>
#include <CGAL/assertions.h>
#include <CGAL/tags.h>
namespace CGAL {

View File

@ -20,6 +20,9 @@
#ifndef CGAL_CELL_ATTRIBUTE_H
#define CGAL_CELL_ATTRIBUTE_H 1
#include <CGAL/tags.h>
#include <CGAL/assertions.h>
namespace CGAL {
template <class, class, class, class>

View File

@ -20,6 +20,8 @@
#ifndef CGAL_COMBINATORIAL_MAP_CONSTRUCTORS_H
#define CGAL_COMBINATORIAL_MAP_CONSTRUCTORS_H 1
#include <CGAL/config.h>
#ifndef CGAL_NO_DEPRECATED_CODE
namespace CGAL {

View File

@ -21,6 +21,7 @@
#define CGAL_DART_H 1
#include <CGAL/assertions.h>
#include <CGAL/tags.h>
#include <CGAL/tuple.h>
#include <bitset>

View File

@ -32,6 +32,7 @@
#include <CGAL/Sphere_3.h>
#include <CGAL/functions_on_signs.h>
#include <CGAL/Envelope_3/Envelope_base.h>
#include <CGAL/int.h>
namespace CGAL {

View File

@ -81,7 +81,7 @@ if ( CGAL_BRANCH_BUILD )
foreach (package ${CGAL_CONFIGURED_PACKAGES})
if (NOT IS_DIRECTORY "${CMAKE_SOURCE_DIR}/${package}")
list(APPEND CGAL_WRONG_PACKAGES ${package})
elseif(NOT IS_DIRECTORY "${CMAKE_SOURCE_DIR}/${package}/package_info")
elseif(NOT EXISTS "${CMAKE_SOURCE_DIR}/${package}/package_info/${package}/maintainer")
list(APPEND CGAL_WRONG_PACKAGES ${package})
endif()
endforeach()
@ -1151,25 +1151,42 @@ You must disable CGAL_ENABLE_CHECK_HEADERS and CGAL_COMPUTE_DEPENDENCIES.")
endif()
foreach(header ${${package}_HEADERS})
set(skip_hdr FALSE)
if(POLICY CMP0057
AND has_list_of_documented_headers
AND NOT header IN_LIST list_of_documented_headers
)
if(POLICY CMP0057)
if(has_list_of_documented_headers
AND NOT header IN_LIST list_of_documented_headers)
message(STATUS "Skip non-documented header \"${header}\".")
set(skip_hdr TRUE)
endif()
endif()
if(NOT QGLVIEWER_FOUND)
string(REGEX MATCH "CGAL/Three/.*" is_a_three_header ${header})
if(is_a_three_header)
message(STATUS "Skip Three header \"${header}\" because \
QGLVIEWER_FOUND is false.")
set(skip_hdr TRUE)
endif()
endif()
if(NOT VTK_FOUND)
string(REGEX MATCH ".*vtk.*" is_a_vtk_header ${header})
if(is_a_vtk_header)
message(STATUS "Skip VTK header \"${header}\" because \
VTK_FOUND is false.")
set(skip_hdr TRUE)
endif()
endif()
string(REGEX MATCH "CGAL/leda_.*" is_a_leda_header ${header})
if(NOT LEDA_FOUND AND is_a_leda_header)
message(STATUS "Skip LEDA header \"${header}\" because \
LEDA_FOUND is false.")
set(skip_hdr TRUE)
endif()
if(POLICY CMP0057
AND has_list_of_whitelisted_headers
if(POLICY CMP0057)
if(has_list_of_whitelisted_headers
AND header IN_LIST list_of_whitelisted_headers)
message(STATUS "Skip whitelisted header \"${header}\".")
set(skip_hdr TRUE)
endif()
endif()
if(NOT skip_hdr)
string(REPLACE "/" "__" header2 "${header}")
string(REPLACE "." "_" header2 "${header2}")

View File

@ -0,0 +1 @@
Laurent Rineau <laurent.rineau@cgal.org>

View File

@ -31,6 +31,8 @@
#include <map>
#include <utility>
#include <CGAL/internal/Has_nested_type_Bare_point.h>
#include <boost/mpl/eval_if.hpp>
#include <boost/mpl/identity.hpp>
namespace CGAL {

View File

@ -25,6 +25,7 @@
#include <CGAL/license/Skin_surface_3.h>
#include <CGAL/number_utils.h>
#include <CGAL/determinant.h>
#include <CGAL/enum.h>

View File

@ -25,7 +25,7 @@
#include <CGAL/license/Triangulation_2.h>
#include <CGAL/basic.h>
#include <CGAL/config.h>
namespace CGAL {