From 8bbd764cfccf603f7d46508275309d4815dd11c2 Mon Sep 17 00:00:00 2001 From: Andreas Stallinger Date: Mon, 18 Jan 2016 12:40:08 +0100 Subject: [PATCH] build: different find_library for windows and unix --- CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 4b0ff70d..7b39f387 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -76,7 +76,11 @@ set(EIGEN_ROOT $ENV{EIGEN_DIR}) # Botan ------------------------------------------------------------------------- -find_library(BOTAN botan-1.11 $ENV{BOTAN_DIR}) +if(UNIX) + find_library(BOTAN botan-1.11 $ENV{BOTAN_DIR}) +else() + find_library(BOTAN botan $ENV{BOTAN_DIR}) +endif() # Lib --------------------------------------------------------------------------