Skip to content

Commit

Permalink
Add crt-static to Windows tests
Browse files Browse the repository at this point in the history
  • Loading branch information
justsmth committed Aug 2, 2024
1 parent 5c7ff7a commit ff47d88
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/ci/run_windows_tests.bat
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,12 @@ call :build_and_test Release "-DBUILD_SHARED_LIBS=1" || goto error
call :build_and_test Release "-DBUILD_SHARED_LIBS=1 -DFIPS=1" || goto error
@rem For FIPS on Windows we also have a RelWithDebInfo build to generate debug symbols.
call :build_and_test RelWithDebInfo "-DBUILD_SHARED_LIBS=1 -DFIPS=1" || goto error

@rem On Windows, CMake defaults to dynamically linking to the Windows C-runtime.
@rem We test statically linking our library (whether dynamic or static) to the C-runtime.
call :build_and_test Release "-DBUILD_SHARED_LIBS=0 -DCMAKE_MSVC_RUNTIME_LIBRARY=MultiThreaded" || goto error
call :build_and_test Release "-DBUILD_SHARED_LIBS=1 -DCMAKE_MSVC_RUNTIME_LIBRARY=MultiThreaded" || goto error

exit /b 0

:run_sde_tests
Expand Down

0 comments on commit ff47d88

Please sign in to comment.