-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
111 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# Find Arrow | ||
# This module defines: | ||
# Arrow_INCLUDE_DIR | ||
# Arrow_LIBRARY | ||
# Arrow_LIB_DIR | ||
|
||
find_path(Arrow_INCLUDE_DIR arrow/config.h | ||
PATHS ${Arrow_ROOT}/include | ||
HINTS /usr /usr/include /usr/local /usr/local/include /usr/local/Homebrew /usr/local/Homebrew/include ~/homebrew ~/homebrew/include /opt/homebrew /opt/homebrew/include | ||
NO_CMAKE_SYSTEM_PATH | ||
NO_SYSTEM_ENVIRONMENT_PATH) | ||
|
||
find_path(Arrow_LIB_DIR | ||
NAMES libarrow.a arrow.a libarrow.so arrow.so libarrow.dylib arrow.dylib | ||
PATHS ${Arrow_ROOT}/lib | ||
HINTS /usr /usr/lib /usr/local /usr/local/lib /usr/local/Homebrew /usr/local/Homebrew/lib ~/homebrew/ ~/homebrew/lib /opt/homebrew/ /opt/homebrew/lib | ||
NO_CMAKE_SYSTEM_PATH | ||
NO_SYSTEM_ENVIRONMENT_PATH) | ||
|
||
if(BUILD_SHARED_LIBS) | ||
find_file(Arrow_LIBRARY | ||
NAMES libarrow.so arrow.so libarrow.dylib arrow.dylib | ||
PATHS ${Arrow_ROOT} | ||
HINTS /usr /usr/lib /usr/local /usr/local/lib /usr/local/Homebrew /usr/local/Homebrew/lib ~/homebrew/ ~/homebrew/lib /opt/homebrew/ /opt/homebrew/lib | ||
NO_CMAKE_SYSTEM_PATH | ||
NO_SYSTEM_ENVIRONMENT_PATH) | ||
else() | ||
find_file(Arrow_LIBRARY | ||
NAMES libarrow.a arrow.a | ||
PATHS ${Arrow_ROOT} | ||
HINTS /usr /usr/lib /usr/local /usr/local/lib /usr/local/Homebrew /usr/local/Homebrew/lib ~/homebrew/ ~/homebrew/lib /opt/homebrew/ /opt/homebrew/lib | ||
NO_CMAKE_SYSTEM_PATH | ||
NO_SYSTEM_ENVIRONMENT_PATH) | ||
endif() | ||
|
||
include(FindPackageHandleStandardArgs) | ||
find_package_handle_standard_args(Arrow REQUIRED_VARS Arrow_INCLUDE_DIR Arrow_LIB_DIR Arrow_LIBRARY) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# Find Thrift | ||
# This module defines: | ||
# Thrift_INCLUDE_DIR | ||
# Thrift_LIBRARY | ||
# Thrift_LIB_DIR | ||
|
||
find_path(Thrift_INCLUDE_DIR thrift/Thrift.h | ||
PATHS ${Thrift_ROOT}/include | ||
HINTS /usr /usr/include /usr/local /usr/local/include /usr/local/Homebrew /usr/local/Homebrew/include ~/homebrew ~/homebrew/include /opt/homebrew /opt/homebrew/include | ||
NO_CMAKE_SYSTEM_PATH | ||
NO_SYSTEM_ENVIRONMENT_PATH) | ||
|
||
find_path(Thrift_LIB_DIR | ||
NAMES libthrift.a libthrift.so libthrift.dylib | ||
PATHS ${Thrift_ROOT}/lib | ||
HINTS /usr /usr/lib /usr/local /usr/local/lib /usr/local/Homebrew /usr/local/Homebrew/lib ~/homebrew/ ~/homebrew/lib /opt/homebrew/ /opt/homebrew/lib | ||
NO_CMAKE_SYSTEM_PATH | ||
NO_SYSTEM_ENVIRONMENT_PATH) | ||
|
||
if(BUILD_SHARED_LIBS) | ||
find_file(Thrift_LIBRARY | ||
NAMES libthrift.so thrift.so libthrift.dylib thrift.dylib | ||
PATHS ${Thrift_ROOT} | ||
HINTS /usr /usr/lib /usr/local /usr/local/lib /usr/local/Homebrew /usr/local/Homebrew/lib ~/homebrew/ ~/homebrew/lib /opt/homebrew/ /opt/homebrew/lib | ||
NO_CMAKE_SYSTEM_PATH | ||
NO_SYSTEM_ENVIRONMENT_PATH) | ||
else() | ||
find_file(Thrift_LIBRARY | ||
NAMES libthrift.a thrift.a | ||
PATHS ${Thrift_ROOT} | ||
HINTS /usr /usr/lib /usr/local /usr/local/lib /usr/local/Homebrew /usr/local/Homebrew/lib ~/homebrew/ ~/homebrew/lib /opt/homebrew/ /opt/homebrew/lib | ||
NO_CMAKE_SYSTEM_PATH | ||
NO_SYSTEM_ENVIRONMENT_PATH) | ||
endif() | ||
|
||
# For apache arrow | ||
set(ThriftAlt_LIB ${Thrift_LIBRARY}) | ||
|
||
include(FindPackageHandleStandardArgs) | ||
find_package_handle_standard_args(Thrift REQUIRED_VARS Thrift_INCLUDE_DIR Thrift_LIB_DIR Thrift_LIBRARY) |