[feature] add CMP0091

main
gmh5225 2 years ago
parent 981c48dbc5
commit 28f541cd3c
No known key found for this signature in database
GPG Key ID: 3BBC731F40B2CEC1

@ -523,7 +523,11 @@ void generate_cmake(const char *path, const parser::Project *parent_project) {
if (root_project) {
cmd("cmake_minimum_required")("VERSION", project.cmake_version).endl();
// clang-format off
cmd("if")("POLICY", "CMP0091");
cmd("cmake_policy")("SET", "CMP0091", "NEW");
cmd("endif")().endl();
// clang-format on
if (!project.allow_in_tree) {
// clang-format off
cmd("if")("CMAKE_SOURCE_DIR", "STREQUAL", "CMAKE_BINARY_DIR");

Loading…
Cancel
Save