Skip to content

Commit

Permalink
Improve MSVC warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
beutlich committed Jan 29, 2024
1 parent 84508ce commit e246621
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Modelica/Resources/BuildProjects/CMake/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@ endif()
# UNIX configurations...
if (UNIX)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O3 -Wno-attributes -fno-delete-null-pointer-checks")
elseif (MSVC)
add_definitions(-D_CRT_SECURE_NO_WARNINGS /W3)
endif()

# Set installation prefix
Expand Down

0 comments on commit e246621

Please sign in to comment.