RunCMake/Autogen_1: handle short expectations on VS correctly

This commit is contained in:
Ben Boeckel committed 2025-09-02 12:56:24 -04:00
1 parent b64226f2b4
commit 724eb18d57
1 file changed
+1
@@ -88,6 +88,7 @@ if (DEFINED with_qt_version)
if(CMAKE_INCLUDE_FLAG_CXX)
if(RunCMake_GENERATOR MATCHES "Visual Studio")
string(REGEX REPLACE "^-" "/" test_expect_stdout "${CMAKE_INCLUDE_FLAG_CXX}")
string(REGEX REPLACE "^-" "/" test_expect_stdout_short "${CMAKE_INCLUDE_FLAG_CXX}")
else()
set(test_expect_stdout "-*${CMAKE_INCLUDE_FLAG_CXX}")
set(test_expect_stdout_short "-*${CMAKE_INCLUDE_FLAG_CXX}")