mirror of
https://github.com/guanzhi/GmSSL.git
synced 2026-05-06 16:36:16 +08:00
Merge pull request #1495 from cntpro/master
增加在nmake下对源文件utf-8编码的支持,解决在msvc编译错误问题
This commit is contained in:
@@ -359,6 +359,10 @@ if (CMAKE_C_COMPILER_ID MATCHES "MSVC")
|
||||
set(CMAKE_INSTALL_PREFIX "C:/Program Files/GmSSL") # change by `cmake -DCMAKE_INSTALL_PREFIX=C:\path\to\install`
|
||||
# run `set path=%path%;C:\Program Files\GmSSL\bin`
|
||||
add_compile_definitions(_CRT_SECURE_NO_WARNINGS)
|
||||
|
||||
target_compile_options(gmssl PRIVATE /utf-8)
|
||||
target_compile_options(gmssl-bin PRIVATE /utf-8)
|
||||
|
||||
# target_compile_options(gmssl PRIVATE /wd4996)
|
||||
# target_compile_options(gmssl-bin PRIVATE /wd4996)
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user