Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Force exclude-from-all on FetchContent subdirectory (#6)
Versions of CMake prior to 3.28 (3.20 tested) do not appear to respect, or at least propagate, EXCLUDE_FROM_ALL to subdirectories added through FetchContent_MakeAvailable. This results in install failures due to attempts to install unbuilt targets, suggesting partial propagation and/or a bug in CMake. Workaround issue by manually populating and adding subproject with explicit add_subdirectory(... EXCLUDE_FROM_ALL).
- Loading branch information