mirror of
https://github.com/thunderbrewhq/squall.git
synced 2025-12-12 02:22:30 +00:00
chore(build): check for no-invalid-offsetof before applying
This commit is contained in:
parent
a5b2cc0391
commit
7a0699ae8f
1 changed files with 9 additions and 4 deletions
|
|
@ -1,3 +1,6 @@
|
|||
include(CheckCCompilerFlag)
|
||||
check_c_compiler_flag(-Wno-invalid-offsetof HAS_NO_INVALID_OFFSETOF)
|
||||
|
||||
file(GLOB STORM_SOURCES
|
||||
"*.cpp"
|
||||
"hash/*.cpp"
|
||||
|
|
@ -37,7 +40,9 @@ target_link_libraries(storm
|
|||
system
|
||||
)
|
||||
|
||||
target_compile_options(storm
|
||||
PUBLIC
|
||||
-Wno-invalid-offsetof
|
||||
)
|
||||
if(HAS_NO_INVALID_OFFSETOF)
|
||||
target_compile_options(storm
|
||||
PUBLIC
|
||||
-Wno-invalid-offsetof
|
||||
)
|
||||
endif()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue