Commit Graph

598 Commits

Author SHA1 Message Date
Eric Berberich 357d6258f5 cmake's link_libraries is deprecated
removed almost all occurenced (missing UseFiles). While
doing so, some CMakeLists.txt could also be simplified. In fact
many more CMakeLists.txt can be simplified, in one of two ways:
1) add external libs to CGAL_3RD_PARTY_LIBRARIES and
2) call cgal_create_single_source_program
2012-08-03 22:32:39 +00:00
Eric Berberich e6d6802a96 svn mv to right position 2012-08-03 20:57:41 +00:00
Eric Berberich 7fdba3893b renamed missing directories 2012-08-03 17:35:29 +00:00
Laurent Rineau db194534c7 First big patch to fix -Wunused-local-typedefs
-Wunused-local-typedefs is a new warning flag of gcc-4.7, and it will enabled
 by -Wall since gcc-4.8 (not yet released).

The fix is a big set of removals of unused typedefs (or comments, or moves,
depending on the context).
2012-08-01 13:29:16 +00:00
Laurent Rineau e87895400f Fix a bug created by that revision:
| ------------------------------------------------------------------------
  | r57003 | afabri | 2010-06-23 10:30:32 +0200 (Wed, 23 Jun 2010) | 1 line
  | 
  | int -> size_t and static_casts
  | ------------------------------------------------------------------------

The conversion from int to size_t is not always safe. Here the right type
was a signed type: std::ptrdiff_t, especially because the variable stores a
difference between two pointers.

The bug was discovered by a very recent version of clang:
clang version 3.2 (trunk 160721)

The error was:
cd /home/lrineau/CGAL/CGAL-4.1-Ic-113/cmake/platforms/x86-64_Linux-2.6_llvm-clang-with-g++-4.6.2_F16/src/CGAL && /usr/local/packages/llvm-trunk/bin/clang++   -DCGAL_EXPORTS -DCGAL_TEST_SUITE -DCGAL_USE_MPFR -DCGAL_USE_GMPXX -DCGAL_USE_GMP --std=c++11 -fno-strict-aliasing -Wall -fPIC -I/home/lrineau/CGAL/CGAL-4.1-Ic-113/cmake/platforms/x86-64_Linux-2.6_llvm-clang-with-g++-4.6.2_F16/include -I/home/lrineau/CGAL/CGAL-4.1-Ic-113/include -I/home/lrineau/CGAL/boost/boost-release-branch    -o CMakeFiles/CGAL.dir/all_files.cpp.o -c /home/lrineau/CGAL/CGAL-4.1-Ic-113/cmake/platforms/x86-64_Linux-2.6_llvm-clang-with-g++-4.6.2_F16/src/CGAL/all_files.cpp
In file included from /home/lrineau/CGAL/CGAL-4.1-Ic-113/cmake/platforms/x86-64_Linux-2.6_llvm-clang-with-g++-4.6.2_F16/src/CGAL/all_files.cpp:2:
/home/lrineau/CGAL/CGAL-4.1-Ic-113/src/CGAL/JAMA_numeric_solver.cpp:83:14: error: case value evaluates to -1, which cannot be narrowed to type 'std::size_t' (aka 'unsigned long') [-Wc++11-narrowing]
        case -1:
             ^
/home/lrineau/CGAL/CGAL-4.1-Ic-113/src/CGAL/JAMA_numeric_solver.cpp:109:14: error: case value evaluates to -1, which cannot be narrowed to type 'std::size_t' (aka 'unsigned long') [-Wc++11-narrowing]
        case -1:
             ^
In file included from /home/lrineau/CGAL/CGAL-4.1-Ic-113/cmake/platforms/x86-64_Linux-2.6_llvm-clang-with-g++-4.6.2_F16/src/CGAL/all_files.cpp:13:
/home/lrineau/CGAL/CGAL-4.1-Ic-113/src/CGAL/Turkowski_numeric_solver.cpp:398:8: error: case value evaluates to -1, which cannot be narrowed to type 'std::size_t' (aka 'unsigned long') [-Wc++11-narrowing]
  case -1:
       ^
/home/lrineau/CGAL/CGAL-4.1-Ic-113/src/CGAL/Turkowski_numeric_solver.cpp:431:8: error: case value evaluates to -1, which cannot be narrowed to type 'std::size_t' (aka 'unsigned long') [-Wc++11-narrowing]
  case -1:
       ^
4 errors generated.
2012-07-26 12:46:30 +00:00
Laurent Rineau 4a41cc2956 Workaround to allow NDEBUG
That program seems to check timing. I understand why NDEBUG could be needed
here. It is OK if it is defined after <CGAL/config.h> in processed.
2012-01-26 10:33:09 +00:00
Laurent Rineau a37c74d534 Add license files, per package 2012-01-16 15:54:22 +00:00
Laurent Rineau 95c4307510 Fix the copyright/license header 2012-01-16 14:26:41 +00:00
Laurent Rineau 5b5dd33848 merge changes from next 2012-01-09 12:33:39 +00:00
Philipp Möller b154f31f27 Removed unused variables from old Qt3 code for cleaner compilation 2011-11-21 15:37:08 +00:00
Laurent Rineau 93486787c3 The inside of ccPkgDescription must not contain black lines between macros
Otherwise that inserts a buggy "<p>" tag in the package overview where the
doctype does not allow it.
2011-11-15 19:16:23 +00:00
Laurent Rineau cb2d3bbd64 Disable the warning about dll-interface needed for std::ofstream members
of Log::State
2011-10-21 10:49:38 +00:00
Andreas Fabri f8a1a2e2c8 Suppress warning about potential dll linkage problem 2011-10-17 13:08:07 +00:00
Andreas Fabri e337d22aa2 Add export statements 2011-10-13 10:03:33 +00:00
Sébastien Loriot 91a5327fa8 change LGPLv2 -> LGPLv3 2011-10-10 13:48:25 +00:00
Andreas Fabri cbfe32ce37 Add declspecs for Visual C++ so that we can build dlls 2011-10-05 19:12:23 +00:00
Laurent Rineau fdb7ea6c6b prepare ccPkgHowToCiteCgal for CGAL-3.10 (in 2012) 2011-09-28 16:15:05 +00:00
Guillaume Damiand a29c905ee0 Replace BOOST_STATIC_ASSERT by CGAL_static_assertion. 2011-08-31 14:30:07 +00:00
Laurent Rineau 369498d1e5 Cancel revision 64607. There had been a problem with the branch.
| ------------------------------------------------------------------------
  | r64607 | efif | 2011-07-05 17:27:04 +0200 (Tue, 05 Jul 2011) | 1 line
  | 
  | Merged feature-branch Aos_2-new_functors-tau into next
  | ------------------------------------------------------------------------
2011-07-06 11:11:58 +00:00
Sébastien Loriot ca13392880 CGAL -> \cgal\ 2011-05-30 12:36:57 +00:00
Laurent Rineau 3c02e07b23 Try to fix my last revision about cmake_policy, with CMake-2.6.x
CMake gives an error if one tries to use cmake_policy(VERSION x.y.z) if
x.y.z is greater than the current CMake version.
2011-04-28 17:45:22 +00:00
Laurent Rineau c97205f085 Global handling of CMake policies (second part)
We declare 
  cmake_minimum_required(VERSION 2.6.2)
but we also use
  cmake_policy(VERSION 2.8.4)
to declare that our CMake scripts are OK with all the defaults of CMake policies
as of CMake-2.8.4. That shuts down the warnings of CMake-2.8.4.

That way, we no longer need any declaration of specific policies.

Those two lines must be present and maintained in all our CMakeLists.txt
files (the one for the libraries, and also the one for examples and demos,
and maybe tests).
2011-04-28 10:55:56 +00:00
Laurent Rineau 0631943153 Uniform capitalization in our CMake script: use lowercase for commands 2011-04-28 10:36:18 +00:00
Laurent Rineau ca5c92e034 Global maintenance of CMakeLists.txt: CMake minimal version is -2.6.2
The documentation of CGAL says that the minimal version of CMake must be
CMake-2.6.2.
  - change cmake_minimum_required to VERSION 2.6.2
  - no longer any need for the policy CMP0003 (was for 2.4.x)
  - no longer any need for CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS (was for 2.4)
2011-04-27 17:58:27 +00:00
Eric Berberich eb7a5ed11e branch-build is now HOT on next ;-) 2011-04-15 09:12:06 +00:00
Eric Berberich 2733a26a3f Qt -> Qt3 2011-04-15 08:43:49 +00:00
Sébastien Loriot e5a96255ba *remove warnings.
In particular remove UNTESTED_XXXXXXXXXXX unused variable that possibly hide true warnings. 
In those cases, the string printed while executed now starts with "NOTE: ".
*CGAL internal code no longer rely on depecrated features
2011-02-28 15:28:28 +00:00
Laurent Rineau da95064578 Update the \ccPkgHowToCiteCgal tag for CGAL-3.8 (2011). 2011-02-24 15:21:10 +00:00
Sébastien Loriot a2cec87f46 replace remaing fabs in include files by CGAL::abs 2011-02-18 15:37:40 +00:00
Laurent Rineau 3c110e9771 Fix pedantic errors: extra ';' 2010-12-10 10:00:40 +00:00
Laurent Rineau d5c660832a Fix compilation error after one of my previous commits (about mirror_edge). 2010-12-01 10:51:04 +00:00
Laurent Rineau 249b484e60 Fix typos: \ccRefName eats any following space character. One must use
\ccRefName{} or \ccRefName\
2010-11-30 11:01:34 +00:00
Marc Glisse 77cfc7e02a remove extra ';' 2010-11-30 10:05:22 +00:00
Laurent Rineau 9c3701e4fc Use boost::iterator_facade. Without it, it is very difficult to write
iterators that real are models of the iterator concepts.
2010-11-29 12:33:20 +00:00
Laurent Rineau aced534160 Fix warnings about unused variables. 2010-11-29 12:32:22 +00:00
Laurent Rineau 09bab9cce9 Missing operator+ in CGAL::POLYNOMIAL::internal::Derivative<Fn>::It 2010-11-25 15:41:22 +00:00
Daniel Russel 0311e3f96e remove unused variables 2010-11-18 15:48:09 +00:00
Laurent Rineau eef140e603 Follow-up of previous commit:
| ------------------------------------------------------------------------
  | r59682 | lrineau | 2010-11-12 16:17:09 +0100 (Fri, 12 Nov 2010) | 3 lines
  | 
  | Patch so that KDS no longer uses deprecated code (mirror_index and
  | mirror_vertex from Triangulation_face_base).
  | 
  | ------------------------------------------------------------------------
2010-11-17 10:42:07 +00:00
Laurent Rineau 82171d1e91 Patch so that KDS no longer uses deprecated code (mirror_index and
mirror_vertex from Triangulation_face_base).
2010-11-12 15:17:09 +00:00
Laurent Rineau 48a7f8fb26 KDS demo needs Core. 2010-09-23 19:47:01 +00:00
Laurent Rineau c6d77ff3af Partial revert of revision 58795 for <CGAL/Kinetic/Sort.h>. I had commited debug things from my working copy 2010-09-22 22:20:13 +00:00
Laurent Rineau 113141506d Fixes for CLang (more C++ conformance) 2010-09-22 16:24:04 +00:00
Andreas Fabri 72a7d2973e thank you, eagle 2010-08-23 17:36:50 +00:00
Andreas Fabri 08605c0f72 Remove extra ';' 2010-08-23 13:36:27 +00:00
Andreas Fabri 0a11128fc8 Remove extra ';' 2010-08-23 13:33:54 +00:00
Laurent Rineau cdf0322256 Let's remove all makefiles, now. 2010-08-23 11:03:02 +00:00
Andreas Fabri 714149267e built-in arrays have no member functions as size() and empty() 2010-08-23 07:38:37 +00:00
Andreas Fabri efffec74b9 see if Intel C++ strict ansi likes this assertion better 2010-08-10 08:46:12 +00:00
Andreas Fabri d781f3d704 Removed one of two default constructors 2010-08-06 11:08:29 +00:00
Andreas Fabri 885678e792 Removed default constructor as there exists a constructor with one argument having a default value 2010-08-05 06:41:44 +00:00