Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable CMake policy CMP0077 #2222

Merged
merged 1 commit into from
Jun 27, 2020
Merged

Enable CMake policy CMP0077 #2222

merged 1 commit into from
Jun 27, 2020

Commits on Jun 26, 2020

  1. Enable CMake policy CMP0077

    Projects that import json via [FetchContent](https://cmake.org/cmake/help/latest/module/FetchContent.html) or `add_subdirectory` pointed at a git submodule may want to set `JSON_BuildTests` to "NO". However, this doesn't work without creating an identical `option()` in the importing project. Enabling CMP0077 in supported versions of CMake changes the behavior of `option()` to allow importing projects to set default values for the variables without touching the cache.
    
    See the documentation for CMP0077 here: https://cmake.org/cmake/help/latest/policy/CMP0077.html
    alexreinking committed Jun 26, 2020
    Configuration menu
    Copy the full SHA
    ec43371 View commit details
    Browse the repository at this point in the history