cmake - Silence CMP0048 Warnings in Vendored Projects -


i have git submodules cmakelists.txt files causing warnings due cmp0048. warnings this:

cmake warning (dev) @ submodule_directory/cmakelists.txt:24 (project):   policy cmp0048 not set: project() command manages version variables.   run "cmake --help-policy cmp0048" policy details.  use cmake_policy   command set policy , suppress warning.    following variable(s) set empty:      project_version     project_version_major     project_version_minor     project_version_patch warning project developers.  use -wno-dev suppress it. 

i don't control these cmakelists.txt files , don't want fork there's nothing done , want cmake shut it. using cmake_policy(set cmp0048 old) before adding submodule directories doesn't solve this. (i guess project() resets cmake policies?).

is there can this?


Popular posts from this blog

php - How should I create my API for mobile applications (Needs Authentication) -

5 Reasons to Blog Anonymously (and 5 Reasons Not To)

Google AdWords and AdSense - A Dynamic Small Business Marketing Duo