From d7a7f9d9b05c3e3a9728bb1644a556527a721afd Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Fri, 28 Apr 2017 14:24:36 +0300 Subject: CMakeLists.txt updates Strip symbols, link the runtime statically, fix MinGW-w64 builds, etc. --- um/wrappers/special/nt_path_converter/utils/CMakeLists.txt | 6 +++++- um/wrappers/special/nt_path_converter/utils/convert_nt_path.cpp | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'um/wrappers/special/nt_path_converter') 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; } -- cgit v1.2.3