Skip to content

Commit

Permalink
fix: semver compilation on macOS Monterey
Browse files Browse the repository at this point in the history
ignore unused variable build warnings being treated as errors on macOS Monterey (12.x)
  • Loading branch information
NikhilNarayana committed Aug 31, 2023
1 parent 1b003dd commit 0d1a3dc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Externals/semver/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ if(UNIX)
add_definitions(-std=c++14)
endif()

if(APPLE)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-error -Wno-unused-but-set-variable -Wno-missing-variable-declarations")
endif()

if(WIN32)
add_definitions(-DWINVER=0x0601)
add_definitions(-D_WIN32_WINNT=0x0601)
Expand Down

0 comments on commit 0d1a3dc

Please sign in to comment.