Commit Graph

20 Commits

Author SHA1 Message Date
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