Merge pull request #41 from ferdnyc/no-warn-printf

FindFilesystem: Eliminate Win32 warning
This commit is contained in:
Alexander Shaduri
2023-01-16 13:32:31 +04:00
committed by GitHub
+2 -2
View File
@@ -197,12 +197,12 @@ set(_found FALSE)
if(CXX_FILESYSTEM_HAVE_FS)
# We have some filesystem library available. Do link checks
string(CONFIGURE [[
#include <cstdlib>
#include <iostream>
#include <@CXX_FILESYSTEM_HEADER@>
int main() {
auto cwd = @CXX_FILESYSTEM_NAMESPACE@::current_path();
printf("%s", cwd.c_str());
std::cout << cwd << std::endl;
return EXIT_SUCCESS;
}
]] code @ONLY)