Skip to content

Commit

Permalink
Leaving compiler options at /MT
Browse files Browse the repository at this point in the history
  • Loading branch information
Andy Bruce committed May 16, 2024
1 parent d712409 commit 081f33d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,8 @@ if(MSVC)
add_definitions(-DOQS_PROVIDER_NOATOMIC)
add_definitions(-D_CRT_SECURE_NO_WARNINGS)
set(OQS_ADDL_SOCKET_LIBS ws2_32.lib gdi32.lib crypt32.lib)
# ABr: using /MT needs to depend on Debug vs Release and must match liboqs / openssl
set(CMAKE_CXX_FLAGS_RELEASE "/MT")
set(CMAKE_CXX_FLAGS_DEBUG "/MTd")
# bring compile options in line with openssl options; link otherwise fails
add_compile_options(/MT)
else()
add_compile_options(-Wunused-function)
set(OQS_ADDL_SOCKET_LIBS "")
Expand Down

0 comments on commit 081f33d

Please sign in to comment.