diff --git a/CMakeLists.txt b/CMakeLists.txt index 4d6033eada..692989c998 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -272,6 +272,10 @@ if(MACOSX AND NOT IOS) endif() endif() +if(IOS) + add_definitions(-DHAVE_SYSCTLBYNAME) +endif() + include(FindThreads) if(APPLE)