--- a/cmake/FindBlocksRuntime.cmake 2015-02-25 17:38:55.953677769 +0100 +++ b/cmake/FindBlocksRuntime.cmake 2015-02-25 17:47:17.764453340 +0100 @@ -1,7 +1,7 @@ include (FindPackageHandleStandardArgs) include (CheckFunctionExists) -find_path(BLOCKS_RUNTIME_PUBLIC_INCLUDE_DIR Block.h +find_path(BLOCKS_RUNTIME_PUBLIC_INCLUDE_DIR objc/blocks_runtime.h DOC "Path to Block.h" ) @@ -9,7 +9,7 @@ list (APPEND BLOCKS_RUNTIME_INCLUDE_DIRS ${BLOCKS_RUNTIME_PUBLIC_INCLUDE_DIR}) endif () -find_path(BLOCKS_RUNTIME_PRIVATE_INCLUDE_DIR Block_private.h +find_path(BLOCKS_RUNTIME_PRIVATE_INCLUDE_DIR objc/blocks_private.h DOC "Path to Block_private.h" ) if (BLOCKS_RUNTIME_PRIVATE_INCLUDE_DIR) @@ -19,7 +19,7 @@ check_function_exists(BLOCKS_RUNTIME_RUNTIME_IN_LIBC _Block_copy) if (NOT BLOCKS_RUNTIME_RUNTIME_IN_LIBC) - find_library(BLOCKS_RUNTIME_LIBRARIES "BlocksRuntime") + set(CBLOCKS_LIBRARIES "-l:libobjc.so.4.6") endif () if (BLOCKS_RUNTIME_LIBRARIES OR BLOCKS_RUNTIME_RUNTIME_IN_LIBC) --- a/src/internal.h 2015-02-25 17:51:35.523266420 +0100 +++ b/src/internal.h 2015-02-25 17:52:24.227605647 +0100 @@ -162,8 +162,8 @@ #include #ifdef __BLOCKS__ -#include -#include +#include +#include #endif /* __BLOCKS__ */ #include