Skip to content
Snippets Groups Projects
Commit b612ac31 authored by Soeren Peters's avatar Soeren Peters
Browse files

Enable warning like errors for the msvc build.

parent fb3c7dd4
No related branches found
No related tags found
1 merge request!27Remove GPU compiler warnings (Closes #4, #12)
......@@ -127,7 +127,7 @@ msvc_16:
- cd $CI_PROJECT_DIR
- md -force $env:BUILD_FOLDER
- cd $env:BUILD_FOLDER
- cmake .. --preset=all_msvc
- cmake .. --preset=all_msvc -DBUILD_WARNINGS_AS_ERRORS=ON
- MSBuild.exe VirtualFluids.sln /property:Configuration=$env:BUILD_CONFIGURATION /verbosity:minimal /maxcpucount:4
cache:
......
......@@ -31,6 +31,12 @@ list(APPEND CS_COMPILER_FLAGS_CXX "/wd4100") # unreferenced formal parameter
list(APPEND CS_COMPILER_FLAGS_CXX "/wd4324")
list(APPEND CS_COMPILER_FLAGS_CXX "/wd4201")
if(BUILD_WARNINGS_AS_ERRORS)
list(APPEND CS_COMPILER_FLAGS_CXX "/WX")
endif()
#############################################################################################################
# preprocessor definitions
#############################################################################################################
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment