File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -189,10 +189,13 @@ function(libhydrasdr_common_settings libtarget)
189189 message (STATUS "ARM64 detected: enabling native CPU optimizations" )
190190 elseif (CMAKE_SYSTEM_PROCESSOR MATCHES "armv7|armv6|arm" )
191191 # ARM32 (RPi3 in 32-bit mode): Enable NEON/VFP if available
192- target_compile_options (${libtarget} PRIVATE
193- $<$<CONFIG :Release >:-mfpu =neon -vfpv4 > # Enable NEON
194- $<$<CONFIG :Release >:-mfloat -abi =hard > # Use hardware FP
195- )
192+ # Android NDK only supports softfp, skip hard float ABI
193+ if (NOT ANDROID )
194+ target_compile_options (${libtarget} PRIVATE
195+ $<$<CONFIG :Release >:-mfpu =neon -vfpv4 > # Enable NEON
196+ $<$<CONFIG :Release >:-mfloat -abi =hard > # Use hardware FP
197+ )
198+ endif ()
196199 message (STATUS "ARM32 detected: enabling NEON/VFPv4 optimizations" )
197200 endif ()
198201
You can’t perform that action at this time.
0 commit comments