Replace the Deprecated $<CONFIGURATION> with $<CONFIG>

This commit is contained in:
Amir Masoud Abdol 2023-01-17 19:44:32 +00:00 committed by Rasmus Munk Larsen
parent d70b4864d9
commit 3fe8c51104

View File

@ -230,10 +230,10 @@ macro(ei_add_failtest testname)
# Add the tests to ctest. # Add the tests to ctest.
add_test(NAME ${test_target_ok} add_test(NAME ${test_target_ok}
COMMAND ${CMAKE_COMMAND} --build . --target ${test_target_ok} --config $<CONFIGURATION> COMMAND ${CMAKE_COMMAND} --build . --target ${test_target_ok} --config $<CONFIG>
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}) WORKING_DIRECTORY ${CMAKE_BINARY_DIR})
add_test(NAME ${test_target_ko} add_test(NAME ${test_target_ko}
COMMAND ${CMAKE_COMMAND} --build . --target ${test_target_ko} --config $<CONFIGURATION> COMMAND ${CMAKE_COMMAND} --build . --target ${test_target_ko} --config $<CONFIG>
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}) WORKING_DIRECTORY ${CMAKE_BINARY_DIR})
# Expect the second test to fail # Expect the second test to fail