diff --git a/cmake/RunTests.cmake b/cmake/RunTests.cmake index fe346661b5..cb221ae847 100644 --- a/cmake/RunTests.cmake +++ b/cmake/RunTests.cmake @@ -36,8 +36,7 @@ if(BUSTED_OUTPUT_TYPE STREQUAL junit) set(EXTRA_ARGS OUTPUT_FILE ${BUILD_DIR}/${TEST_TYPE}test-junit.xml) endif() -set(BUSTED_ARGS $ENV{BUSTED_ARGS}) -separate_arguments(BUSTED_ARGS) +separate_arguments(BUSTED_ARGS NATIVE_COMMAND $ENV{BUSTED_ARGS}) if(DEFINED ENV{TEST_TAG} AND NOT "$ENV{TEST_TAG}" STREQUAL "") list(APPEND BUSTED_ARGS --tags $ENV{TEST_TAG})