mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2025-01-15 11:45:47 +00:00
Fix compiler flag
This commit is contained in:
parent
4816ae64f7
commit
8bfc0b8085
@ -2501,7 +2501,12 @@ if((CMAKE_CXX_COMPILER_ID STREQUAL "GNU") AND NOT WIN32)
|
|||||||
endif()
|
endif()
|
||||||
if(IS_ARM)
|
if(IS_ARM)
|
||||||
if(CMAKE_CXX_COMPILER_VERSION VERSION_GREATER "7.1.0")
|
if(CMAKE_CXX_COMPILER_VERSION VERSION_GREATER "7.1.0")
|
||||||
add_compile_options(-faligned-new)
|
set(CXX_ALIGN_FLAG -faligned-new)
|
||||||
|
if(NOT (CMAKE_VERSION VERSION_LESS "3.3"))
|
||||||
|
add_compile_options("$<$<COMPILE_LANGUAGE:CXX>:${CXX_ALIGN_FLAG}>")
|
||||||
|
else()
|
||||||
|
add_compile_options("$<$<STREQUAL:$<TARGET_PROPERTY:LINKER_LANGUAGE>,CXX>:${CXX_ALIGN_FLAG}>")
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
Loading…
Reference in New Issue
Block a user