mirror of
https://github.com/thunderbrewhq/squall.git
synced 2025-12-12 10:32:29 +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
|
file(GLOB STORM_SOURCES
|
||||||
"*.cpp"
|
"*.cpp"
|
||||||
"hash/*.cpp"
|
"hash/*.cpp"
|
||||||
|
|
@ -37,7 +40,9 @@ target_link_libraries(storm
|
||||||
system
|
system
|
||||||
)
|
)
|
||||||
|
|
||||||
target_compile_options(storm
|
if(HAS_NO_INVALID_OFFSETOF)
|
||||||
|
target_compile_options(storm
|
||||||
PUBLIC
|
PUBLIC
|
||||||
-Wno-invalid-offsetof
|
-Wno-invalid-offsetof
|
||||||
)
|
)
|
||||||
|
endif()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue