Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Conditionally enable CMake policy CMP0077
Projects that import Bond using add_subdirectory pointed at a Git submodule may want to set options like BOND_ENABLE_GRPC and BOND_FIND_RAPIDJSON through a top-level CMakeLists.txt. However, this doesn't work without creating an identical option() in the importing project. Enabling CMP0077 in CMake 3.13+ changes the behavior of option() to allow importing projects to set default values for the variables without touching the cache. Co-authored-by: Sumit Bhardwaj <[email protected]>
- Loading branch information