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 b2a2675
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build_windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
mkdir build &&
echo "preparing new build with cmake..." &&
cd build/ &&
cmake .. &&
cmake -DCMAKE_BUILD_TYPE=Release .. &&
cmake --build . &&
echo "Build complete!"
shell: bash
Expand Down
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ 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")
add_definitions(-D_ITERATPR_DEBUG_LEVEL=0)
else()
#print unsupported OS
endif()
Expand Down

0 comments on commit b2a2675

Please sign in to comment.