Open kevin-- opened 2 years ago
Yes, the package is optional. If you know how to remove the warning, happy to accept the change.
Yes, the package is optional. If you know how to remove the warning, happy to accept the change.
i can try to look into it eventually. Just curious because the other libs do not cause such warnings
The following should silence the warning.
# Suppress warnings, see the grey Note on https://cmake.org/cmake/help/latest/module/FindPackageHandleStandardArgs.html
set(FPHSA_NAME_MISMATCHED on)
find_package(Boehm_GC)
unset(FPHSA_NAME_MISMATCHED)
Of course actually addressing the warning would be nicer. It seems to suggest to call find_package(BoehmGC)
, notice no underscore.
Oh, interesting, thanks Tradias!
when running CMake to generate a project, we get the following cmake warning in the console (with no Boehm GC installed)