mirror of https://github.com/CGAL/cgal
Merge pull request #2052 from lrineau/Installation-fix_check_headers-GF
Fix the `check_headers` target
This commit is contained in:
commit
069820329e
|
|
@ -58,7 +58,9 @@ compiler:
|
|||
- clang
|
||||
- gcc
|
||||
addons:
|
||||
apt:
|
||||
apt:
|
||||
sources:
|
||||
- sourceline: 'ppa:ppsspp/cmake'
|
||||
packages:
|
||||
- zsh
|
||||
- cmake
|
||||
|
|
|
|||
|
|
@ -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'
|
||||
|
|
|
|||
|
|
@ -18,7 +18,9 @@ compiler:
|
|||
- clang
|
||||
- gcc
|
||||
addons:
|
||||
apt:
|
||||
apt:
|
||||
sources:
|
||||
- sourceline: 'ppa:ppsspp/cmake'
|
||||
packages:
|
||||
- zsh
|
||||
- cmake
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -21,6 +21,7 @@
|
|||
#define CGAL_DART_H 1
|
||||
|
||||
#include <CGAL/assertions.h>
|
||||
#include <CGAL/tags.h>
|
||||
#include <CGAL/tuple.h>
|
||||
#include <bitset>
|
||||
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
||||
|
|
|
|||
|
|
@ -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,12 +1151,28 @@ 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
|
||||
)
|
||||
message(STATUS "Skip non-documented header \"${header}\".")
|
||||
set(skip_hdr TRUE)
|
||||
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)
|
||||
|
|
@ -1164,11 +1180,12 @@ You must disable CGAL_ENABLE_CHECK_HEADERS and CGAL_COMPUTE_DEPENDENCIES.")
|
|||
LEDA_FOUND is false.")
|
||||
set(skip_hdr TRUE)
|
||||
endif()
|
||||
if(POLICY CMP0057
|
||||
AND has_list_of_whitelisted_headers
|
||||
AND header IN_LIST list_of_whitelisted_headers)
|
||||
message(STATUS "Skip whitelisted header \"${header}\".")
|
||||
set(skip_hdr TRUE)
|
||||
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}")
|
||||
|
|
|
|||
|
|
@ -0,0 +1 @@
|
|||
Laurent Rineau <laurent.rineau@cgal.org>
|
||||
|
|
@ -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 {
|
||||
|
||||
|
|
|
|||
|
|
@ -25,6 +25,7 @@
|
|||
#include <CGAL/license/Skin_surface_3.h>
|
||||
|
||||
|
||||
#include <CGAL/number_utils.h>
|
||||
#include <CGAL/determinant.h>
|
||||
#include <CGAL/enum.h>
|
||||
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@
|
|||
#include <CGAL/license/Triangulation_2.h>
|
||||
|
||||
|
||||
#include <CGAL/basic.h>
|
||||
#include <CGAL/config.h>
|
||||
|
||||
|
||||
namespace CGAL {
|
||||
|
|
|
|||
Loading…
Reference in New Issue