[cmake-developers] Please review CXXFeatures.cmake

Stephen Kelly steveire at gmail.com
Tue Aug 13 08:48:33 EDT 2013


Stephen Kelly wrote:
> I still think you should revisit my review mail on point 2 too.

Something that becomes possible when thinking about the above and target 
properties is interface requirements. 

If my library uses 'final' unguarded by macros in my headers, then I want to 
communicate through the target that a compiler supporting that feature is 
required.

 set_property(TARGET foo PROPERTY INTERFACE_CXX_COMPILER_FEATURE_final 1)

which would work similiarly to (and using the same infrastructure as) 
INTERFACE_POSITION_INDEPENDENT_CODE.

Thanks,

Steve.





More information about the cmake-developers mailing list