diff --git a/CMakeLists.txt b/CMakeLists.txt index 45461eb78..7c954fbc6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -178,6 +178,8 @@ if(NOT ANDROID) find_package(LibRT) endif() +find_package(BlocksRuntime QUIET) + check_function_exists(_pthread_workqueue_init HAVE__PTHREAD_WORKQUEUE_INIT) check_function_exists(getprogname HAVE_GETPROGNAME) check_function_exists(mach_absolute_time HAVE_MACH_ABSOLUTE_TIME) @@ -331,7 +333,7 @@ add_subdirectory(dispatch) add_subdirectory(man) add_subdirectory(os) add_subdirectory(private) -if(NOT APPLE) +if(NOT BlocksRuntime_FOUND) add_subdirectory(src/BlocksRuntime) endif() add_subdirectory(src)