cmake: fix c/cxx compile option use with asm code
This commit is contained in:
parent
2bf5f6ecc9
commit
6debf337c8
@ -93,11 +93,11 @@ add_compile_options(
|
||||
$<$<AND:$<COMPILE_LANGUAGE:C>,$<BOOL:${HAVE_DECL_AFTER_STMT_FLAG}>>:-Wdeclaration-after-statement>)
|
||||
|
||||
if(HAVE_STACK_PROTECTOR_FLAG)
|
||||
add_compile_options(-fstack-protector-strong)
|
||||
add_compile_options($<$<OR:$<COMPILE_LANGUAGE:C>,$<COMPILE_LANGUAGE:CXX>>:-fstack-protector-strong>)
|
||||
endif()
|
||||
|
||||
if(CMAKE_SYSTEM_PROCESSOR STREQUAL "i686" AND HAVE_STACKREALIGN_FLAG)
|
||||
add_compile_options(-mstackrealign)
|
||||
add_compile_options($<$<OR:$<COMPILE_LANGUAGE:C>,$<COMPILE_LANGUAGE:CXX>>:-mstackrealign>)
|
||||
endif()
|
||||
|
||||
include_directories("include")
|
||||
|
Loading…
Reference in New Issue
Block a user