5412deded1
Extend the interface of the target_compile_features command with PUBLIC and INTERFACE keywords. Populate the INTERFACE_COMPILER_FEATURES target property if they are set. Consume the INTERFACE_COMPILER_FEATURES target property from linked dependent targets to determine the final required compiler features and the compile flag, if needed. Use the same pattern of origin-debugging which is used for other build properties.
5 lines
167 B
CMake
5 lines
167 B
CMake
|
|
set(CMAKE_DEBUG_TARGET_PROPERTIES COMPILE_FEATURES)
|
|
add_library(somelib STATIC empty.cpp)
|
|
set_property(TARGET somelib PROPERTY COMPILE_FEATURES "$<1:not_a_feature>")
|