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.
```
Before my fix, the CMakeLists.txt could be sum-up that way:
```cmake
find_package(CGAL REQUIRED)
find_package(Boost QUIET)
if(NOT Boost_FOUND)
message(
STATUS "This project requires the Boost library, and will not be compiled.")
create_single_source_cgal_program( "Point_WKT.cpp" )
# [...]
else ()
message(STATUS "This project requires the CGAL library, and will not be compiled.")
return()
endif()
```
So, on *all platform*, as Boost is mandatory and always found, the
behavior was to display "This project requires the CGAL library, and
will not be compiled." and return, without configuring any target.
I have simplified the `CMakeLists.txt` to the simplest:
```cmake
cmake_minimum_required(VERSION 3.1...3.20)
project(Stream_support_Examples)
find_package(CGAL REQUIRED)
create_single_source_cgal_program( "Point_WKT.cpp" )
```
- `cmake_minimum_required` is mandatory and must be the first line,
- `project` is mandatory,
- `find_package(CGAL REQUIRED)`: no need to test `CGAL_FOUND`, because
CGAL is required anyway. No need to search for Boost, because that is
an implementation detail of CGAL, and the CMake file
`CGALConfig.cmake` deals with that dependency
- and then the declaration of the targets.
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