mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-04 12:49:36 -06:00
In commit v3.7.0-rc1~158^2 (ExternalData: Tolerate files duplicated across multiple targets, 2016-07-07) we added a test case for repeating the same data file reference in three different targets in the same directory in order to exercise its corresponding fix. However, we re-used the top-level `Data.dat` file which is already produced by an unrelated test case. `ninja` diagnoses the duplicate rule. Update the test to use a dedicated data file name for the three-times repeated case to avoid this conflict. It still covers the original purpose of the test.
23 lines
636 B
CMake
23 lines
636 B
CMake
# Test adding the same data file in multiple tests
|
|
ExternalData_Add_Test(Data5.A
|
|
NAME Data5Check.A
|
|
COMMAND ${CMAKE_COMMAND}
|
|
-D Data5=DATA{Data5.dat}
|
|
-P ${CMAKE_CURRENT_SOURCE_DIR}/Data5Check.cmake
|
|
)
|
|
ExternalData_Add_Target(Data5.A)
|
|
ExternalData_Add_Test(Data5.B
|
|
NAME Data5Check.B
|
|
COMMAND ${CMAKE_COMMAND}
|
|
-D Data5=DATA{Data5.dat}
|
|
-P ${CMAKE_CURRENT_SOURCE_DIR}/Data5Check.cmake
|
|
)
|
|
ExternalData_Add_Target(Data5.B)
|
|
ExternalData_Add_Test(Data5.C
|
|
NAME Data5Check.C
|
|
COMMAND ${CMAKE_COMMAND}
|
|
-D Data5=DATA{Data5.dat}
|
|
-P ${CMAKE_CURRENT_SOURCE_DIR}/Data5Check.cmake
|
|
)
|
|
ExternalData_Add_Target(Data5.C)
|