mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-07 14:20:06 -06:00
In commit 197cb419d1 (add_custom_command: Add CODEGEN support,
2024-05-27, v3.31.0-rc1~394^2) we accidentally left out the global
`codegen` target's dependencies on the per-directory `codegen` targets.
Add them for parity with the `all` target.
Fixes: #26517
10 lines
354 B
CMake
10 lines
354 B
CMake
set(filename "${RunCMake_TEST_BINARY_DIR}/generated.h")
|
|
if(NOT EXISTS "${filename}")
|
|
string(APPEND RunCMake_TEST_FAILED "expected file NOT created:\n ${filename}\n")
|
|
endif()
|
|
|
|
set(filename "${RunCMake_TEST_BINARY_DIR}/SubDir/generated.h")
|
|
if(EXISTS "${filename}")
|
|
string(APPEND RunCMake_TEST_FAILED "unexpected file created:\n ${filename}\n")
|
|
endif()
|