Skip to content

Commit

Permalink
增加在nmake下utf-8编码的支持
Browse files Browse the repository at this point in the history
修正msvc编译错误。
  • Loading branch information
cntpro authored May 20, 2023
1 parent 5ca0d60 commit 6f8db2f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -354,6 +354,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()
Expand Down

0 comments on commit 6f8db2f

Please sign in to comment.