Tests: Remove stray argument from test invocation

The run_cmake_with_options() command already sets the test
command to ${CMAKE_COMMAND}. The options passed to that
command shouldn't also add another ${CMAKE_COMMAND}.
This removes a warning seen in the output of tests that invoke
__ep_test_with_build_with_server().
This commit is contained in:
Craig Scott
2022-01-24 22:25:06 +11:00
parent 91de0ff599
commit 9406b2073e

View File

@@ -112,7 +112,7 @@ function(__ep_test_with_build_with_server testName)
file(READ ${URL_FILE} SERVER_URL)
message(STATUS "URL : ${URL_FILE} - ${SERVER_URL}")
run_cmake_with_options(${testName} ${CMAKE_COMMAND} -DSERVER_URL=${SERVER_URL} )
run_cmake_with_options(${testName} -DSERVER_URL=${SERVER_URL})
run_cmake_command(${testName}-clean ${CMAKE_COMMAND} --build . --target clean)
run_cmake_command(${testName}-build ${CMAKE_COMMAND} --build .)
endfunction()