When you set a CMake target's property, you can make it PUBLIC
, INTERFACE
or PUBLIC
. Yet - the CMake manual page on the CXX_STANDARD
property does not indicate the ability to specify one of these. Specifically, suppose I have:
set_target_properties(mylib PROPERTIES
CXX_STANDARD 11
CXX_STANDARD_REQUIRED YES
CXX_EXTENSIONS NO
)
Is it really unavailable? And if so, why?
(Note: This question applies just the same to C or any language which CMake supports this way.)