Skip to content

Commit

Permalink
Update CMake to remove global warning flags
Browse files Browse the repository at this point in the history
  • Loading branch information
vijaiaeroastro authored and gangatp committed Apr 15, 2024
1 parent ceca3e1 commit 7597c67
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@ if (${MSVC})
# using Visual Studio C++

# this ensures that the min/max macros of minwindef.h are not used
add_definitions(-DNOMINMAX /W3)
add_definitions(-DNOMINMAX)

#add_definitions(/W3)

add_definitions(/W3)

# add_definitions(-D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS)
# set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} /MT")
# set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} /MTd")
Expand Down Expand Up @@ -273,4 +273,4 @@ set(CPACK_PACKAGE_FILE_NAME "${CPACK_PACKAGE_NAME}-${CPACK_PACKAGE_VERSION}-${CM
set(CPACK_SOURCE_PACKAGE_FILE_NAME "${CPACK_PACKAGE_NAME}-${CPACK_PACKAGE_VERSION}-Source")

#########################################################
include(CPack)
include(CPack)

0 comments on commit 7597c67

Please sign in to comment.