mirror of
https://github.com/reactos/CMake.git
synced 2025-01-07 11:40:23 +00:00
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.
7 lines
236 B
CMake
7 lines
236 B
CMake
|
|
set(CMAKE_DEBUG_TARGET_PROPERTIES COMPILE_FEATURES)
|
|
add_library(iface INTERFACE)
|
|
set_property(TARGET iface PROPERTY INTERFACE_COMPILE_FEATURES "not_a_feature")
|
|
add_library(somelib STATIC empty.cpp)
|
|
target_link_libraries(somelib iface)
|