Skip to content

Commit

Permalink
Add -Wno-missing-braces under clang-cl
Browse files Browse the repository at this point in the history
  • Loading branch information
danielkrupinski committed Nov 6, 2023
1 parent 7cbdb67 commit b326ddc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Source/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ if(MSVC)
target_link_options(Osiris PRIVATE $<$<CONFIG:Release>:/nodefaultlib /ENTRY:"DllMain">)
endif()

if(CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
target_compile_options(Osiris PRIVATE -Wno-missing-braces)
endif()

if(UNIX)
target_compile_options(Osiris PRIVATE -Wall -Wno-missing-braces)
target_link_options(Osiris PRIVATE LINKER:--no-undefined)
Expand Down

0 comments on commit b326ddc

Please sign in to comment.