Skip to content

Commit 2512bcf

Browse files
authored
Merge pull request intel#176 from oxidase/patch-1
Ignore missing-braces warnings for AppleClang similar to Clang
2 parents bebe3ca + 2435169 commit 2512bcf

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

CMakeLists.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,10 @@ endif()
2525
add_library(stdx INTERFACE)
2626
target_compile_features(stdx INTERFACE cxx_std_${CMAKE_CXX_STANDARD})
2727
target_compile_options(
28-
stdx INTERFACE $<$<CXX_COMPILER_ID:Clang>:-Wno-missing-braces>)
28+
stdx
29+
INTERFACE
30+
$<$<OR:$<CXX_COMPILER_ID:Clang>,$<CXX_COMPILER_ID:AppleClang>>:-Wno-missing-braces>
31+
)
2932
target_link_libraries_system(stdx INTERFACE concurrency boost_mp11
3033
fmt::fmt-header-only)
3134

0 commit comments

Comments
 (0)