Skip to content

Commit 33afa34

Browse files
committed
libdispatch: rename blocksruntime patch
1 parent ce56e4d commit 33afa34

File tree

2 files changed

+26
-65
lines changed

2 files changed

+26
-65
lines changed

patches/libdispatch-export-blocksrt.patch

Lines changed: 0 additions & 65 deletions
This file was deleted.
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
diff --git a/CMakeLists.txt b/CMakeLists.txt
2+
index 51f1f1b..564ddac 100644
3+
--- a/CMakeLists.txt
4+
+++ b/CMakeLists.txt
5+
@@ -333,7 +333,7 @@ add_subdirectory(man)
6+
add_subdirectory(os)
7+
add_subdirectory(private)
8+
if(NOT APPLE)
9+
- add_subdirectory(src/BlocksRuntime)
10+
+ include(cmake/modules/FindBlocksRuntime.cmake)
11+
endif()
12+
add_subdirectory(src)
13+
if(BUILD_TESTING)
14+
diff --git a/cmake/modules/FindBlocksRuntime.cmake b/cmake/modules/FindBlocksRuntime.cmake
15+
index 111a5d6..3310b75 100644
16+
--- a/cmake/modules/FindBlocksRuntime.cmake
17+
+++ b/cmake/modules/FindBlocksRuntime.cmake
18+
@@ -17,7 +17,7 @@ if(BlocksRuntime_INCLUDE_DIR AND BlocksRuntime_LIBRARIES)
19+
else()
20+
find_path(BlocksRuntime_INCLUDE_DIR
21+
NAMES
22+
- Blocks.h
23+
+ Block.h
24+
HINTS
25+
${CMAKE_INSTALL_FULL_INCLUDEDIR})
26+
find_library(BlocksRuntime_LIBRARIES

0 commit comments

Comments
 (0)