Commit Graph

516 Commits

Author SHA1 Message Date
Laurent Rineau bdd7988a4a remove CMake warnings about CMP0167
The issue was when VTK/ITK was searched. The
variable `CMAKE_POLICY_DEFAULT_CMP0167` can be
used to workaround that.
2025-05-27 13:02:04 +02:00
Laurent Rineau 8eefb7f173 Merge branch 'master' into pr/lrineau/8273 2025-02-07 16:10:52 +01:00
Laurent Rineau 050677f002 add CMake option CGAL_with_benchmarks 2025-02-06 01:21:42 +01:00
Laurent Rineau e5001d1a50 update our CMake version 3.18...3.31
That will suppress the warnings about `CMP0167` (from CMake 3.30):

```
CMake Warning (dev) at cmake/modules/display-third-party-libs-versions.cmake:37 (find_package):
  Policy CMP0167 is not set: The FindBoost module is removed.  Run "cmake
  --help-policy CMP0167" for policy details.  Use the cmake_policy command to
  set the policy and suppress this warning.
```
2025-02-04 14:32:37 +01:00
Sébastien Loriot 11640a3946 Merge remote-tracking branch 'cgal/6.0.x-branch' in master 2024-12-04 14:13:01 +01:00
mbarbier 56f57215b6 Fixing ICPC usage with modern cmake and wrappers
Related to conan's conan-io/conan-center-index#25843

replaced 'fp-model strict' by 'fp-model=strict' https://www.intel.com/content/www/us/en/docs/cpp-compiler/developer-guide-reference/2021-8/fp-model-fp.html
for more compatibility with nvcc. as 'fp-model=strict' will be directly
transmited to the compiler while 'fp-model strict' will have 'strict'
being treated as a file input.

Also added a CXX only filter for newer cmake 3.3+
2024-11-27 09:19:23 +00:00
Laurent Rineau f48042e370 Merge remote-tracking branch 'cgal/master' into update_cmake_vars_for_arch_compiler_info-GF 2024-09-25 19:12:34 +02:00
Laurent Rineau 262fb0bb87 Merge remote-tracking branch 'cgal/master' into List-third-party-libraries-GF 2024-09-20 09:29:21 +02:00
Laurent Rineau 2a1e5ee9e7 only display the 3rd-party versions with CGAL_TEST_SUITE
@SaillantNicolas I have pushed this commit directly.
2024-08-23 16:42:03 +02:00
Laurent Rineau 49cb591951 move the code to a CMake module 2024-08-21 16:28:23 +02:00
Sebastien Loriot 862a3b6539
Update CMakeLists.txt for recent VTK to fix CMake Warning (#8279)
## Summary of Changes

Versions >= 9 of VTK trigger the following CMake warning using CGAL's
CMakeLists
```
CMake Deprecation Warning at C:/dev/VTK-9.2.2/build/lib/cmake/vtk-9.2/vtk-use-file-deprecated.cmake:1 (message):
  The `VTK_USE_FILE` is no longer used starting with 8.90.
Call Stack (most recent call first):
  CMakeLists.txt:32 (include)
```

I suggest this modification of the CMakeLists of Mesh_3 examples, that
also requires moving to VTK 9 (9.0 was released in 2020).
If this modification and new requirement are validated, I can apply the
change everywhere.

## Release Management

* Affected package(s): Mesh_3 for now
* License and copyright ownership: unchanged
2024-08-19 11:14:31 +02:00
Nicolas Saillant 565d5413b0 Restructure third party libraries in a table format 2024-08-05 15:51:05 +02:00
Nicolas Saillant 00cc6ce694 Update GMP and GLPK version checks in CMakeLists.txt 2024-07-16 16:00:46 +02:00
Nicolas Saillant e3fd9ed25f Update library version checking logic for MPFR and METIS 2024-07-12 16:30:55 +02:00
Laurent Rineau 2616293563 Rename lib to cgal_3rdparty_lib
Because FindVTK redefines `lib` to something else!
2024-07-12 11:59:07 +02:00
Laurent Rineau e5a32d79ea Fix issue with VTK/Qt5/Qt6 2024-07-12 11:40:39 +02:00
Nicolas Saillant fc9a08e93e Update library check to use a function and loop 2024-07-11 16:18:37 +02:00
Nicolas Saillant d8451ecfed Update third-party library names and versions in CMakeLists.txt 2024-07-10 16:27:16 +02:00
Nicolas Saillant 46f4171ec0 display third party libraries in summary 2024-06-12 11:02:01 +02:00
Laurent Rineau f3b409a807 require VTK version 9.0 or later 2024-06-11 15:57:25 +02:00
Laurent Rineau 3a223ebd1e cmake_minimum_required(VERSION 3.12...3.29) 2024-06-06 20:19:44 +02:00
Nicolas Saillant ff30601f36 Add version details to some third-party libraries 2024-06-04 16:09:24 +02:00
Nicolas Saillant 2edba44559 Use lsb_release for system information retrieval 2024-05-06 15:29:07 +02:00
Laurent Rineau 4db6bc6d16 Merge pull request #6967 from gdamiand/gsoc2022-EBVs-Mostafa-ashraf19
GSoC'22: New CGAL's design to handle basic viewers
2024-04-10 18:04:25 +02:00
Sébastien Loriot f8d2d3d351 remove leftover 2024-03-28 12:52:53 +01:00
Sébastien Loriot bb0b1aa6bb do not pollute CI with useless warnings/errors 2024-03-27 22:17:09 +01:00
Guillaume Damiand 9a0b8eb824 Merge branch 'master' into gsoc2022-EBVs-Mostafa-ashraf19 2024-03-26 16:25:29 +01:00
Sébastien Loriot 44b7ec6f3a improve detection of cases when Core can be used 2024-03-14 11:11:18 +01:00
Sébastien Loriot 7e518c4511 do not add Core while computing dependencies 2024-02-27 11:57:16 +01:00
Laurent Rineau 4a222f1165 fix the CI issue 2024-02-26 13:46:32 +01:00
Andreas Fabri e4558a4d4b Merge branch 'master' into CORE-boost_mp_number-GF 2024-02-23 17:04:37 +01:00
Guillaume Damiand 3bc56024d3 Merge branch 'master' into gsoc2022-EBVs-Mostafa-ashraf19 2024-01-11 14:08:05 +01:00
Laurent Rineau 41258bf760 Merge pull request #7963 from sloriot/CGAL-cmake_remove_exec_command
Use execute_process that is recommanded over exec_command since 3.0
2024-01-11 12:45:38 +01:00
Sébastien Loriot f970b9bba4 add option to remove extra newline 2024-01-05 14:08:32 +01:00
Sébastien Loriot 0ab6971ede use execute_process that is recommanded over exec_command since 3.0 2024-01-04 14:30:40 +01:00
Sébastien Loriot 37c792a764 fix qt6 version 2023-12-27 11:56:08 +01:00
Laurent Rineau a000007c8c fix the install of /include/CGAL/Qt 2023-11-29 23:50:24 +01:00
Laurent Rineau 95b83b1214 Merge pull request #7845 from puneetmatharu/patch-cgal-dont-override-build-testing
Patch usage of BUILD_TESTING to handle the case that CGAL is a subproject
2023-11-29 17:22:54 +01:00
Laurent Rineau a8b8102567 CGAL_ENABLE_TESTING has three definitions
`CGAL_ENABLE_TESTING` is defined three times:
- once in `/CMakeLists.txt` that is the root of the CMake tree for a Git layout
- once in `Installation/CMakeLists.txt` that is the root of the CMake
  for a release tarball,
- and once in `CGAL_add_test.cmake`, for consumers of `CGALConfig.cmake`.

Two changes:
- Add the default value `${BUILD_TESTING}` to all three definitions
- Modify the comment
2023-11-10 13:17:46 +01: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 b05e1e9e46 Remove UseCGAL.cmake
and our old CMake macros `use_lib` and `use_component`.
2023-09-14 17:32:55 +02:00
Sébastien Loriot 573de7f29e Merge branch 'master' 2023-06-22 13:38:49 +02:00
Sébastien Loriot bbc4d08ee0 Merge remote-tracking branch 'cgal/master' into HEAD 2023-06-15 10:47:07 +02:00
Sébastien Loriot 6df9a0d61c check headers also needs c++17 2023-06-15 10:43:53 +02:00
Andreas Fabri c6ce5fb120 Switch to QT6 for the GraphicsView demos 2023-04-19 12:19:38 +01:00
Mael Rouxel-Labbé cd0c81a98a Merge remote-tracking branch 'cgal/master' into P3M3-Undocumented_polyhedral_domain_example-GF 2023-03-20 10:14:27 +01:00
Andreas Fabri 0d320e48a8 Merge branch 'Number_types-fix_VC2017_boost_mp-GF' into CORE-boost_mp_number-GF 2023-03-17 08:28:10 +01:00
Sébastien Loriot acbe714a14 update rules for using/finding core 2023-02-20 13:56:21 +01:00
Laurent Rineau b5e7ffdeea Fix error with P3M3 during check_headers
```
#error "The header '<CGAL/Periodic_3_mesh_3/config.h>' must be included before '<CGAL/Mesh_3/config.h>
```
2022-12-12 12:09:10 +01:00
Laurent Rineau d71f2c6fd1 Fix compilation error with recent version of VTK 2022-12-12 12:09:10 +01:00