Skip to content

Commit

Permalink
Make Win build as Release
Browse files Browse the repository at this point in the history
  • Loading branch information
ben committed Sep 21, 2024
1 parent 3c412d9 commit 1b17b26
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 1b17b26

Please sign in to comment.