Move the HAVE_SYSCTLBYNAME definition out of X86, remove the previous workaround

This commit is contained in:
Henrik Rydgård 2023-09-03 15:18:25 +02:00
parent 7941753105
commit 416f4239e1
2 changed files with 2 additions and 8 deletions

View File

@ -272,10 +272,6 @@ if(MACOSX AND NOT IOS)
endif() endif()
endif() endif()
if(IOS)
add_definitions(-DHAVE_SYSCTLBYNAME)
endif()
include(FindThreads) include(FindThreads)
if(APPLE) if(APPLE)

View File

@ -154,10 +154,8 @@ endif()
target_include_directories(cpu_features target_include_directories(cpu_features
PUBLIC $<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}/cpu_features> PUBLIC $<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}/cpu_features>
) )
if(PROCESSOR_IS_X86) if(APPLE)
if(APPLE) target_compile_definitions(cpu_features PRIVATE HAVE_SYSCTLBYNAME)
target_compile_definitions(cpu_features PRIVATE HAVE_SYSCTLBYNAME)
endif()
endif() endif()
add_library(CpuFeature::cpu_features ALIAS cpu_features) add_library(CpuFeature::cpu_features ALIAS cpu_features)