summarylogtreecommitdiffstats
path: root/system-blocksruntime.patch
blob: fa7762afcc54c7075b2e7ba8b1e72383f422bf17 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 9f3f221..dd6c7a3 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -123,7 +123,7 @@ endif()
 
 option(INSTALL_PRIVATE_HEADERS "installs private headers in the same location as the public ones" OFF)
 
-if(NOT CMAKE_SYSTEM_NAME STREQUAL Darwin)
+if(NOT CMAKE_SYSTEM_NAME STREQUAL Darwin AND OFF)
   set(BlocksRuntime_INCLUDE_DIR ${PROJECT_SOURCE_DIR}/src/BlocksRuntime)
 
   # NOTE(compnerd) use the `BUILD_SHARED_LIBS` variable to determine what type
@@ -182,6 +182,7 @@ if(__BUILTIN_TRAP)
 endif()
 
 find_package(LibRT)
+find_package(BlocksRuntime)
 
 check_function_exists(_pthread_workqueue_init HAVE__PTHREAD_WORKQUEUE_INIT)
 check_function_exists(getprogname HAVE_GETPROGNAME)