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()