diff options
author | Marcel Raad <Marcel.Raad@teamviewer.com> | 2020-08-22 10:04:29 +0200 |
---|---|---|
committer | Marcel Raad <Marcel.Raad@teamviewer.com> | 2020-08-29 10:01:10 +0200 |
commit | 95aea798dbd785c4daee2b2e24f2c8c94f3e3cf4 (patch) | |
tree | 723ee619003e49c2295ad19c4b084e416b4fdefd /src | |
parent | 05729b66c56fe67ce96a1a0a037cd4946aa46e36 (diff) | |
download | curl-95aea798dbd785c4daee2b2e24f2c8c94f3e3cf4.tar.gz |
CMake: add option to enable Unicode on Windows
As already existing for winbuild.
Closes https://github.com/curl/curl/pull/5843
Diffstat (limited to 'src')
-rw-r--r-- | src/CMakeLists.txt | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 26e3cfe1e..b994ae961 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -78,6 +78,12 @@ if(CURL_HAS_LTO) INTERPROCEDURAL_OPTIMIZATION_RELWITHDEBINFO TRUE) endif() +if(ENABLE_UNICODE AND MINGW) + target_link_libraries(${EXE_NAME} -municode) + # GCC doesn't know about wmain + set_source_files_properties(tool_main.c PROPERTIES COMPILE_FLAGS "-Wno-missing-prototypes -Wno-missing-declarations") +endif() + source_group("curlX source files" FILES ${CURLX_CFILES}) source_group("curl source files" FILES ${CURL_CFILES}) source_group("curl header files" FILES ${CURL_HFILES}) |