aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/um/wrappers/special/nt_path_converter/utils
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--um/wrappers/special/nt_path_converter/utils/CMakeLists.txt6
-rw-r--r--um/wrappers/special/nt_path_converter/utils/convert_nt_path.cpp2
2 files changed, 6 insertions, 2 deletions
diff --git a/um/wrappers/special/nt_path_converter/utils/CMakeLists.txt b/um/wrappers/special/nt_path_converter/utils/CMakeLists.txt
index 9915995..9c5254b 100644
--- a/um/wrappers/special/nt_path_converter/utils/CMakeLists.txt
+++ b/um/wrappers/special/nt_path_converter/utils/CMakeLists.txt
@@ -1,2 +1,6 @@
add_executable(convert_nt_path convert_nt_path.cpp)
-target_link_libraries(convert_nt_path libnt_path_converter)
+target_link_libraries(convert_nt_path PRIVATE libnt_path_converter)
+if(MINGW)
+ target_compile_options(convert_nt_path PRIVATE -municode)
+ target_link_libraries(convert_nt_path PRIVATE -municode)
+endif()
diff --git a/um/wrappers/special/nt_path_converter/utils/convert_nt_path.cpp b/um/wrappers/special/nt_path_converter/utils/convert_nt_path.cpp
index 0055db2..9d25242 100644
--- a/um/wrappers/special/nt_path_converter/utils/convert_nt_path.cpp
+++ b/um/wrappers/special/nt_path_converter/utils/convert_nt_path.cpp
@@ -18,7 +18,7 @@ int wmain(int argc, wchar_t* argv[])
}
catch (const std::exception& e)
{
- std::wcerr << e.what() << "\n";
+ std::cerr << e.what() << "\n";
return 1;
}