aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/um/wrappers/special/nt_path_converter
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2017-04-28 14:24:36 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2017-04-28 14:24:36 +0300
commitd7a7f9d9b05c3e3a9728bb1644a556527a721afd (patch)
treee5616f2572c0fcaf9a122cb5852e95c5e5083ab3 /um/wrappers/special/nt_path_converter
parentservice: fix compiler warnings & code style (diff)
downloadwindows7-drivers-d7a7f9d9b05c3e3a9728bb1644a556527a721afd.tar.gz
windows7-drivers-d7a7f9d9b05c3e3a9728bb1644a556527a721afd.zip
CMakeLists.txt updates
Strip symbols, link the runtime statically, fix MinGW-w64 builds, etc.
Diffstat (limited to 'um/wrappers/special/nt_path_converter')
-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;
}