4

I am using a few external libraries that are included as git submodules using the add_subdirectory command. Some of them are using old versions of cmake and they're issuing warnings about policies CMP0048 and CMP0077.

Is there a way to turn off all cmake warnings for these libraries?

I've tried explicitly setting the policies to OLD before including the projects but it didn't help.

I'd prefer not to edit any files in the git submodule because then there would be extra steps when someone has to clone my project's repo and build it on their machine.

Person93
  • 1,004
  • 8
  • 22

0 Answers0