Skip to content

Commit

Permalink
Windows Intel: suppress nuisance warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
scivision committed Feb 16, 2022
1 parent f59d804 commit 42cc824
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ if(NOT MUMPS_UPSTREAM_VERSION)
endif()

if(MSVC AND BUILD_SHARED_LIBS)
message(WARNING "MUMPS: Windows MSVC/Intel compilers with **shared** libraries is not supported and will probably fail.
message(WARNING "MUMPS: Windows Intel/IntelLLVM compilers with **shared** libraries is not supported and will probably fail.
Recommend using static libraries, which does work:
cmake -DBUILD_SHARED_LIBS=off")
endif()
Expand Down
3 changes: 3 additions & 0 deletions cmake/compilers.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ endif()
add_compile_definitions(CDEFS "Add_")
# "Add_" works for all modern compilers we tried.

if(MSVC)
add_compile_definitions(_CRT_SECURE_NO_WARNINGS)
endif()

if(CMAKE_Fortran_COMPILER_ID MATCHES Intel)
add_compile_options(
Expand Down

0 comments on commit 42cc824

Please sign in to comment.