From f16e6b58c531caefb9ecdff1ee97dc2692b5b37d Mon Sep 17 00:00:00 2001 From: Andreas Stallinger Date: Mon, 18 Jan 2016 15:09:21 +0100 Subject: [PATCH] build: fix botan find_lib for linux add NO_DEFAULT_PATH to find_library so that the search exclude botan libs installed on the system --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 7b39f387..8d6616d6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -77,7 +77,7 @@ set(EIGEN_ROOT $ENV{EIGEN_DIR}) # Botan ------------------------------------------------------------------------- if(UNIX) - find_library(BOTAN botan-1.11 $ENV{BOTAN_DIR}) + find_library(BOTAN botan-1.11 $ENV{BOTAN_DIR} NO_DEFAULT_PATH) else() find_library(BOTAN botan $ENV{BOTAN_DIR}) endif()