Commit Graph

38 Commits

Author SHA1 Message Date
Laurent Rineau 3a223ebd1e cmake_minimum_required(VERSION 3.12...3.29) 2024-06-06 20:19:44 +02:00
Puneet Matharu 7944441068 Patch usage of BUILD_TESTING to handle the case that CGAL is a subproject. 2023-11-02 18:09:03 +00:00
Laurent Rineau 734c96e951 Merge branch 'master' into pr/lrineau/6558 2022-05-06 16:25:32 +02:00
Laurent Rineau 7c4e43ee1c Merge pull request #6535 from sloriot/Test-remove_cmake_generator
remove mentions to  CMAKE_GENERATOR in test scripts

# Conflicts:
#	CGAL_ipelets/demo/CGAL_ipelets/cgal_test_with_cmake
#	Set_movable_separability_2/test/Set_movable_separability_2/cgal_test_with_cmake
2022-05-06 14:21:25 +02:00
Laurent Rineau 2288225448 Massive update of CMake policies to version 3.23 2022-05-06 09:34:35 +02:00
Sébastien Loriot 8e0ed828e7 remove mentions to CMAKE_GENERATOR in test scripts 2022-04-28 13:48:23 +02:00
Sébastien Loriot ab48f63e30 update latest cmake version tested 2021-11-09 10:58:47 +01:00
Maxime Gimeno b68dbb8f20 Fix false warning reports and tests in snap_rounding_2 (eol problems) 2021-05-20 14:43:56 +02:00
Maxime Gimeno c49152359c update max version of cmake and announce the new minimal in CHANGE.md 2021-04-15 15:08:54 +02:00
Maxime Gimeno 9c15f2c9dc Use FeatureSummary in the demo, and remove CGAL_FOUND 2020-08-04 12:46:17 +02:00
Sébastien Loriot 0779373835 extra run of the script to remove tabs and trailing whitespaces
right after the  merge of 4.14 release branch

+ manual fix on one line in:
    * Arrangement_on_surface_2/include/CGAL/IO/Arr_text_formatter.h
    * .travis/generate_travis.sh
2020-03-26 14:16:06 +01:00
Laurent Rineau 4fbf00fb8a CMake>=3.13: opt for for new policies up to 3.15 2019-06-19 14:34:59 +02:00
Maxime Gimeno b14b457b15 Add missing argument in cgal_test 2018-11-29 10:08:04 +01:00
Guillaume Damiand 92ba7fa6c9 Update minimum cmake required version in all CMakeLists.txt 2018-10-18 14:49:23 +02:00
Guillaume Damiand 0bd9088b5a Remove all include( ) and include( CGAL_CreateSingleSourceCGALProgram ) in CMakeLists.txt; they are no more required. 2018-10-17 14:17:08 +02:00
Guillaume Damiand 7f09308d33 Remove all include_directories(BEFORE ../../include) in CMakeLists.txt 2018-10-17 13:07:22 +02:00
Laurent Rineau 260c4dac61 Fix the API of cgal_add_test 2017-11-03 15:05:35 +01:00
Laurent Rineau ad1a51791a Support test/Snap_rounding_2/ 2017-11-03 11:14:17 +01:00
Laurent Rineau fe4a731dc2 Followup to #1736
Add `--no-warn-unused-cli` to avoid warnings.
2016-12-06 13:47:12 +01:00
Sébastien Loriot 7e2ee496de update project name of cmake scripts of tests 2016-09-08 00:26:37 +02:00
Sébastien Loriot 4c29bf1b44 CMAKE_SOURCE_DIR -> CMAKE_CURRENT_SOURCE_DIR 2016-03-24 16:33:46 +01:00
Sébastien Loriot 881e4d3199 request Core only in examples, tests and demos when really needed 2016-03-07 22:36:57 +01:00
Sébastien Loriot 2d191d6651 commit CMakeLists.txt for all examples and tests 2016-03-07 17:39:36 +01:00
Andreas Fabri f62c18b783 Write to an ofstream and not to std::cout as VLD writes there too and output != gold 2016-01-27 09:45:51 +01:00
Laurent Rineau 2a5740afc9 Rename the test file
That fixes the following CMake warning:

    -- Configuring test in test/Snap_rounding_2
    Requested component: Core
    Requested component: MPFR
    Requested component: GMP
    CMake Warning (dev) at
    Installation/cmake/modules/CGAL_CreateSingleSourceCGALProgram.cmake:19
    (add_executable):
       Policy CMP0037 is not set: Target names should not be reserved and should
       match a validity pattern.  Run "cmake --help-policy CMP0037" for policy
       details.  Use the cmake_policy command to set the policy and suppress this
       warning.

       The target name "test" is reserved or not valid for certain CMake features,
       such as generator expressions, and may result in undefined behavior.
    Call Stack (most recent call first):
       buildEX/test/Snap_rounding_2/CMakeLists.txt:19
    (create_single_source_cgal_program)
    This warning is for project developers.  Use -Wno-dev to suppress
       it.
2015-07-13 15:37:10 +02:00
Laurent Rineau 269ae1ca61 Fix the uses of std::basic_ios::bad(), and use fail() instead.
bad() implies fail() but std::basic_ios::operator! is actually equivalent
to std::basic_ios::fail(), not bad().

For example,
    std::ifstream is(argv[1]);
    if (is.bad()) {
is probably wrong because, in case the file does not exist, only the failbit it set,
and not the badbit.

Other example:
   double x;
   is >> x;
If the stream 'is' does not contains a string that can represent a double,
then failbit is set (and maybe the eofbit if the stream is actually too
short), but not the badbit.

bad() can be used, in case fail() returned true, to discriminate between a
I/O error and a logical error.

See:
  http://en.cppreference.com/w/cpp/io/basic_ios/operator_bool
  http://en.cppreference.com/w/cpp/io/ios_base/iostate
2013-12-12 16:13:40 +01:00
Sébastien Loriot 5471e90cd1 s/succesful/successful 2010-08-12 08:30:26 +00:00
Efi Fogel ee808b748c cleanup 2009-07-12 07:29:42 +00:00
Efi Fogel 2f2ccdbe3a removed redundant arguments to cmake 2009-07-08 11:50:27 +00:00
Ophir Setter bda0a00f0c cmake tests 2008-08-06 17:34:48 +00:00
Fernando Cacciola f93437ca22 Removed *unmodified* auto-generated CMakeLists.txt (now created by create_internal_release) 2008-05-05 14:01:55 +00:00
Fernando Cacciola b704509dcf Examples/Demos/Test CMake scripts updated 2008-03-05 21:14:02 +00:00
Fernando Cacciola a659cd852a Added project() and conditional test for CGAL_DIR 2008-02-14 15:42:36 +00:00
Fernando Cacciola 14043c43a0 Replaced CGALROOT by CGAL_DIR (the latters is used by CMake automatically) 2008-02-08 17:47:21 +00:00
Fernando Cacciola afddfc4fca CMake scripts for demos/examples/test added 2008-02-06 19:06:24 +00:00
Sylvain Pion e0fcccc111 Rename .C tp .cpp 2007-01-27 21:38:17 +00:00
Marc Glisse 3d1ee0cf13 Missing std:: 2006-02-26 00:25:19 +00:00
Laurent Saboret 439becf848 Move packages to trunk root 2006-02-14 08:58:19 +00:00