Remove Findwgrib2.cmake; use config from package instead#125
Remove Findwgrib2.cmake; use config from package instead#125AlexanderRichert-NOAA wants to merge 4 commits intoNOAA-EMC:developfrom
Conversation
|
@aerorahul as far as WCOSS2, I believe the wgrib2 there has a cmake config with a different target name (just "wgrib2::wgrib2"), and the module does not automatically set CMAKE_PREFIX_PATH. Do you want me to try to add some logic to make it work there (maybe add $wgrib2_ROOT to $CMAKE_PREFIX_PATH in module-setup.sh then select CMake target name based on wgrib2 version)? |
|
I think the wgrib2 module provides the The target name is a different issue. This PR is making use of the target Is the WCOSS2 installation an older one (before spack stack), and if we are going to move to ss-1.9.2, we can wait a bit for all installations to be consistent and have the same target. Also tagging @DavidHuber-NOAA |
|
Good point re: "wgrib2_ROOT", I'll try a test with that. @AlysonStahl-NOAA, can you confirm that I'm going to try setting it up where it will automatically detect which of the two target names is available, but if that proves too complicated we can just choose one based on whatever Alyson tells us, anticipating getting a more recent wgrib2 through spack-stack. |
|
@AlexanderRichert-NOAA |
|
Fine with me |
|
@AlexanderRichert-NOAA Yes, that should be the name going forward. I'll make sure there are no unexpected target name changes in future releases. |
Description
This PR removes Findwgrib2.cmake, instead using the wgrib2:wgrib2_ftn_api target defined in the package's CMake config.
Resolves #121
Type of change
Change characteristics
How has this been tested?
Checklist