Skip to content

Commit

Permalink
Fix C++ debug build on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
nhusung committed Aug 30, 2024
1 parent 609d518 commit 0f2ca97
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/cpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: CMake Configure
run: cmake -B build -DCMAKE_BUILD_TYPE=Debug
run: cmake -B build
- name: Build
run: cmake --build build --target bindings/cpp/tests/boolean-function
- name: Run Tests
Expand Down
3 changes: 3 additions & 0 deletions bindings/cpp/tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)

# Workaround for https://corrosion-rs.github.io/corrosion/common_issues.html#linking-debug-cc-libraries-into-rust-fails-on-windows-msvc-targets
set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreadedDLL")

add_executable(boolean-function boolean-function.cpp)
target_link_libraries(boolean-function oxidd)
add_test(NAME boolean-function COMMAND boolean-function)

0 comments on commit 0f2ca97

Please sign in to comment.