Skip to content

Commit 30ca358

Browse files
committed
Update README
1 parent 41f7bcf commit 30ca358

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,12 @@ include(cmake/apple.cmake)
4343
macro(remove_cxx_flag name)
4444
string(REPLACE ${name} "" CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS})
4545
endmacro()
46+
macro(add_cxx_flag name)
47+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${name}$")
48+
endmacro()
4649

4750
remove_cxx_flag(-pedantic)
51+
add_cxx_flag(-Wno-missing-field-initializers)
4852

4953
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/$<CONFIG>/lib)
5054
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/$<CONFIG>/lib)

0 commit comments

Comments
 (0)