Commit cf01d3d2 authored by Brad King's avatar Brad King

Tests: Clarify target names in RunCMake.add_subdirectory ExcludeFromAll

Rename the `baz` target to `subinc` to clarify that its role is to be
included even though it is in an otherwise excluded subdirectory.
parent 21442d72
......@@ -9,5 +9,5 @@ file(GENERATE OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/check-$<LOWER_CASE:$<CONFIG>>.c
set(main_exe \"$<TARGET_FILE:main>\")
set(foo_lib \"$<TARGET_FILE:foo>\")
set(bar_lib \"$<TARGET_FILE:bar>\")
set(baz_lib \"$<TARGET_FILE:baz>\")
set(subinc_lib \"$<TARGET_FILE:subinc>\")
")
add_library(bar STATIC bar.cpp)
add_library(foo STATIC foo.cpp)
add_library(baz STATIC foo.cpp)
set_target_properties(baz PROPERTIES EXCLUDE_FROM_ALL OFF)
target_include_directories(foo PUBLIC .)
add_library(subinc STATIC subinc.cpp)
set_target_properties(subinc PROPERTIES EXCLUDE_FROM_ALL OFF)
......@@ -6,7 +6,7 @@ if(EXISTS ${RunCMake_TEST_BINARY_DIR}/check-debug.cmake)
foreach(file
"${foo_lib}"
"${baz_lib}"
"${subinc_lib}"
"${main_exe}"
)
if(NOT EXISTS "${file}")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment