cmake: set -fno-aligned-allocation on macOS ARM

We set a deployment target that is lower than 10.14, which means
we have to disable aligned allocation otherwise compilation fails.
This commit is contained in:
selsta 2023-06-29 22:53:07 +02:00
parent df9f380671
commit b4491c1072
No known key found for this signature in database
GPG Key ID: 2EA0A99A8B07AE5E

View File

@ -999,6 +999,9 @@ else()
if(APPLE) if(APPLE)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fvisibility=default -DGTEST_HAS_TR1_TUPLE=0") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fvisibility=default -DGTEST_HAS_TR1_TUPLE=0")
if(ARM)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-aligned-allocation")
endif()
endif() endif()
set(DEBUG_FLAGS "-g3") set(DEBUG_FLAGS "-g3")