build: don't look in system paths for kudu client On my system which had the Kudu client library installed in /usr, Impala was picking up the wrong version of the client. This instructs CMake to only look in the specified toolchain directory to find Kudu.
Change-Id: I8dad3d92e0bd07c27c3a58f6964d4da88218049c Reviewed-on: http://gerrit.cloudera.org:8080/6097 Reviewed-by: Matthew Jacobs <[email protected]> Tested-by: Impala Public Jenkins Project: http://git-wip-us.apache.org/repos/asf/incubator-impala/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-impala/commit/56e83806 Tree: http://git-wip-us.apache.org/repos/asf/incubator-impala/tree/56e83806 Diff: http://git-wip-us.apache.org/repos/asf/incubator-impala/diff/56e83806 Branch: refs/heads/master Commit: 56e83806bf21f58618c57245fede42a32f0b8792 Parents: 9414d53 Author: Todd Lipcon <[email protected]> Authored: Mon Feb 20 19:35:25 2017 -0800 Committer: Impala Public Jenkins <[email protected]> Committed: Wed Feb 22 01:14:01 2017 +0000 ---------------------------------------------------------------------- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-impala/blob/56e83806/CMakeLists.txt ---------------------------------------------------------------------- diff --git a/CMakeLists.txt b/CMakeLists.txt index 1a28143..a283097 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -337,7 +337,7 @@ else() endif() # When KUDU_IS_SUPPORTED is false, the Kudu client is expected to be a non-functional # stub. It's still needed to link though. -find_package(kuduClient REQUIRED) +find_package(kuduClient REQUIRED NO_DEFAULT_PATH) include_directories(SYSTEM ${KUDU_CLIENT_INCLUDE_DIR}) # find jni headers and libs
