Hi everyone,
I noticed that building a code that uses openPMD on my laptop now generates some cmake warnings.
[cmake] CMake Deprecation Warning at build/_deps/openpmd-src/share/openPMD/thirdParty/json/CMakeLists.txt:1 (cmake_minimum_required):
[cmake] Compatibility with CMake < 3.5 will be removed from a future version of
[cmake] CMake.
[cmake]
[cmake] Update the VERSION argument <min> value or use a ...<max> suffix to tell
[cmake] CMake that the project does not need compatibility with older versions.
[cmake]
[cmake]
[cmake] -- Using the single-header code from /Users/davide/Desktop/Workspace/Codes/RadiationSafety/build/_deps/openpmd-src/share/openPMD/thirdParty/json/single_include/
[cmake] -- nlohmann-json: Using INTERNAL version '3.9.1'
[cmake] CMake Deprecation Warning at build/_deps/openpmd-src/share/openPMD/thirdParty/toml11/CMakeLists.txt:1 (cmake_minimum_required):
[cmake] Compatibility with CMake < 3.5 will be removed from a future version of
[cmake] CMake.
[cmake]
[cmake] Update the VERSION argument <min> value or use a ...<max> suffix to tell
[cmake] CMake that the project does not need compatibility with older versions.
[cmake]
[cmake]
[cmake] -- toml11: Using INTERNAL version '3.7.1'
[cmake] CMake Deprecation Warning at build/_deps/openpmd-src/share/openPMD/cmake/FindADIOS.cmake:91 (cmake_minimum_required):
[cmake] Compatibility with CMake < 3.5 will be removed from a future version of
[cmake] CMake.
[cmake]
[cmake] Update the VERSION argument <min> value or use a ...<max> suffix to tell
[cmake] CMake that the project does not need compatibility with older versions.
[cmake] Call Stack (most recent call first):
[cmake] build/_deps/openpmd-src/CMakeLists.txt:378 (find_package)
To me they look like problems with the openPMD dependencies.
I only see this on my personal laptop (MacOS with cmake 3.27.1) and not on NERSC Perlmutter with cmake 3.22.0.
Performed steps
The way I link openPMD to my project is using FetchContent, following the documentation
I was wondering if you're aware of some flags/policies I could set to avoid the warning or if it's something that needs to be changed in the openPMD dependecies.
Hi everyone, I noticed that building a code that uses openPMD on my laptop now generates some cmake warnings.
To me they look like problems with the openPMD dependencies. I only see this on my personal laptop (MacOS with cmake
3.27.1
) and not on NERSC Perlmutter with cmake3.22.0
.Performed steps The way I link openPMD to my project is using
FetchContent
, following the documentationI was wondering if you're aware of some flags/policies I could set to avoid the warning or if it's something that needs to be changed in the openPMD dependecies.
System environment