You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-08-01 06:46:55 +03:00
Added the support for pkgconf when finding system thrift
as fedora uses pkgconf to help locate the thrift files during compilation instead of a Thrift.cmake file. I have added this logic in such a way that the existing logic should not be affected. Therefore enabling the use of system thrift even without pkgconf.
This commit is contained in:
committed by
Leonid Fedorov
parent
ee3830f459
commit
d0ee5dae32
@ -12,7 +12,17 @@ if(WITH_THRIFT STREQUAL "system" OR WITH_THRIFT STREQUAL "auto")
|
|||||||
set(THRIFT_LIBRARY "${THRIFT_LIBRARIES}")
|
set(THRIFT_LIBRARY "${THRIFT_LIBRARIES}")
|
||||||
return()
|
return()
|
||||||
elseif(WITH_THRIFT STREQUAL "system")
|
elseif(WITH_THRIFT STREQUAL "system")
|
||||||
message(FATAL_ERROR "System Thrift requested but not found!")
|
FIND_PACKAGE(PkgConfig REQUIRED)
|
||||||
|
pkg_check_modules(THRIFT REQUIRED thrift)
|
||||||
|
|
||||||
|
if(THRIFT_FOUND)
|
||||||
|
add_custom_target(external_thrift)
|
||||||
|
set(THRIFT_INCLUDE_DIR "${THRIFT_INCLUDE_DIR}")
|
||||||
|
set(THRIFT_LIBRARY "${THRIFT_LIBRARIES}")
|
||||||
|
return()
|
||||||
|
else()
|
||||||
|
message(FATAL_ERROR "System Thrift requested but not found!")
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user