diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2017-04-28 14:24:36 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2017-04-28 14:24:36 +0300 |
commit | d7a7f9d9b05c3e3a9728bb1644a556527a721afd (patch) | |
tree | e5616f2572c0fcaf9a122cb5852e95c5e5083ab3 /um/wrappers/special/nt_path_converter | |
parent | service: fix compiler warnings & code style (diff) | |
download | windows7-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 '')
-rw-r--r-- | um/wrappers/special/nt_path_converter/utils/CMakeLists.txt | 6 | ||||
-rw-r--r-- | um/wrappers/special/nt_path_converter/utils/convert_nt_path.cpp | 2 |
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; } |