From 1b17b268327c3f63842160df6569b44d7f22107d Mon Sep 17 00:00:00 2001 From: ben Date: Sat, 21 Sep 2024 15:30:34 +0300 Subject: [PATCH] Make Win build as Release --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index fda3b50..be9e11f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -65,6 +65,7 @@ elseif(WIN32) set(LIB_PATH "${CMAKE_BINARY_DIR}/${LIB_NAME}") # Full path including filename file(DOWNLOAD ${LIB_URL} ${LIB_PATH}) execute_process(COMMAND powershell -Command "Expand-Archive -Path ${LIB_PATH} -DestinationPath '${CMAKE_BINARY_DIR}'") + set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} /MD") else() #print unsupported OS endif()