From 081f33dabc84c1b3d11202c1f588f98ffbbaaf8c Mon Sep 17 00:00:00 2001 From: Andy Bruce Date: Thu, 16 May 2024 09:31:42 -0400 Subject: [PATCH] Leaving compiler options at /MT --- CMakeLists.txt | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index d46a7a86..d55576cb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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 "")