ECP-WarpX / picsar

PICSAR is a library of modular physics routines for PIC codes; historically, it is also a Fortran, high performance repository intended to help scientists porting their Particle-In-Cell (PIC) codes
https://picsar.net
Other
31 stars 17 forks source link

Boost Warning: CMake 3.30+ #55

Open ax3l opened 2 months ago

ax3l commented 2 months ago

I see this warning with CMake 3.30.2 regarding the internally shipped FindBoost.cmake module:

CMake Warning (dev) at CMakeLists.txt:45 (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.

This warning is for project developers.  Use -Wno-dev to suppress it.

https://cmake.org/cmake/help/latest/policy/CMP0167.html

I think we can modernize this by checking which boost versions are new enough to have proper CMake config files shipped and by then using find_package(Boost CONFIG) on our end.