diff --git a/src/corelib/configure.cmake b/src/corelib/configure.cmake index eaeb7862c4..679346188e 100644 --- a/src/corelib/configure.cmake +++ b/src/corelib/configure.cmake @@ -165,7 +165,9 @@ int main(int argc, char **argv) { (void)argc; (void)argv; /* BEGIN TEST: */ -std::filesystem::path p(\"./file\"); +std::filesystem::copy( + std::filesystem::path("./file"), + std::filesystem::path("./other")); /* END TEST: */ return 0; } diff --git a/src/corelib/configure.json b/src/corelib/configure.json index a8efaa509c..4225574761 100644 --- a/src/corelib/configure.json +++ b/src/corelib/configure.json @@ -371,7 +371,11 @@ "type": "compile", "test": { "include": "filesystem", - "main": "std::filesystem::path p(\"./file\");", + "main": [ + "std::filesystem::copy(", + " std::filesystem::path(\"./file\"),", + " std::filesystem::path(\"./other\"));" + ], "qmake": "CONFIG += c++17" } },