I have a project where instead of meddling with global state for cleanness sake I inherit a common set of target properties via an INTERFACE
library, including C_EXTENSIONS
and CXX_EXTENSIONS
, however I get the
CMake Error at CMakeLists.txt:52 (set_target_properties):
INTERFACE_LIBRARY targets may only have whitelisted properties. The
property "C_EXTENSIONS" is not allowed.
error on CMake 3.8. I would like to find out what the current whitelist of properties are on any given CMake version without having to download every version from 3.8-3.22 and give it a spin. (This question is going to arise in the future as well.) I would like to know what the impact of this facility is towards raising the minimum version requirement.
I looked inside the docs and all of the release notes, but these changes aren’t documented, however they do work with 3.22, so somewhere in between 3.8-3.22 there’s a change.