You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
626 B
17 lines
626 B
enable_language(C)
|
|
|
|
set(CMAKE_VERIFY_INTERFACE_HEADER_SETS TRUE)
|
|
|
|
include(FetchContent)
|
|
FetchContent_Declare(verify_subproj
|
|
SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/VerifyHeaderSet
|
|
)
|
|
message(STATUS "Before subproject, var = '${CMAKE_VERIFY_INTERFACE_HEADER_SETS}'")
|
|
FetchContent_MakeAvailable(verify_subproj)
|
|
|
|
# Provide a way to verify the variable was reset back to its original value
|
|
message(STATUS "After subproject, var = '${CMAKE_VERIFY_INTERFACE_HEADER_SETS}'")
|
|
|
|
get_property(verify TARGET Blah PROPERTY VERIFY_INTERFACE_HEADER_SETS)
|
|
message(STATUS "Subproject target property VERIFY_INTERFACE_HEADER_SETS='${verify}'")
|