mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2025-01-28 09:54:51 +00:00
Use -faligned-new compiler flag only if needed
This commit is contained in:
parent
d6b4ba4fc3
commit
6a21f232ff
@ -2501,7 +2501,8 @@ if((CMAKE_CXX_COMPILER_ID STREQUAL "GNU") AND NOT WIN32)
|
||||
add_compile_options(-Wno-psabi)
|
||||
endif()
|
||||
if(IS_ARM)
|
||||
if(CMAKE_CXX_COMPILER_VERSION VERSION_GREATER "7.1.0")
|
||||
if((CMAKE_CXX_COMPILER_VERSION VERSION_GREATER "7.1.0") AND (CMAKE_VERSION VERSION_GREATER "3.1"))
|
||||
if(CMAKE_CXX_STANDARD VERSION_LESS 17)
|
||||
set(CXX_ALIGN_FLAG -faligned-new)
|
||||
if(NOT (CMAKE_VERSION VERSION_LESS "3.3"))
|
||||
add_compile_options("$<$<COMPILE_LANGUAGE:CXX>:${CXX_ALIGN_FLAG}>")
|
||||
@ -2510,6 +2511,7 @@ if((CMAKE_CXX_COMPILER_ID STREQUAL "GNU") AND NOT WIN32)
|
||||
endif()
|
||||
endif()
|
||||
endif()
|
||||
endif()
|
||||
endif()
|
||||
if(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
|
||||
if(NOT (CMAKE_VERSION VERSION_LESS "3.3"))
|
||||
|
Loading…
Reference in New Issue
Block a user