Skip to content

Commit

Permalink
fix: build error on macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
MistEO committed Jan 23, 2024
1 parent 07b364c commit 27d581f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ if(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC" OR CMAKE_CXX_COMPILER_FRONTEND_VARIANT
add_compile_options("/utf-8" "/W4" "/WX" "/Zc:preprocessor")
else()
add_compile_options("-Wall;-Wextra;-Wpedantic;-Werror;-mtune=native")
if(CMAKE_CXX_COMPILER_FRONTEND_VARIANT STREQUAL "Clang")
add_compile_options("-Wno-gnu-zero-variadic-macro-arguments")
endif()
if(CMAKE_SYSTEM_PROCESSOR MATCHES "AMD64|EM64T|x86_64")
add_compile_options("-msse4.1")
endif()
Expand Down

0 comments on commit 27d581f

Please sign in to comment.