From 9130e411e12d923b33c14a09c21b2e23fae231ba Mon Sep 17 00:00:00 2001 From: Riccardo Spagni Date: Thu, 2 Oct 2014 15:49:18 +0200 Subject: fixed unbound static lib on mingw as libunbound.dll.a --- cmake/FindUnbound.cmake | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'cmake/FindUnbound.cmake') diff --git a/cmake/FindUnbound.cmake b/cmake/FindUnbound.cmake index 6c3d15eae..032bcf45e 100644 --- a/cmake/FindUnbound.cmake +++ b/cmake/FindUnbound.cmake @@ -38,7 +38,11 @@ FIND_PATH(UNBOUND_INCLUDE_DIR ) if(STATIC) - find_library(UNBOUND_LIBRARIES libunbound.a) + if(MINGW) + find_library(UNBOUND_LIBRARIES libunbound.dll.a) + else() + find_library(UNBOUND_LIBRARIES libunbound.a) + endif() else() find_library(UNBOUND_LIBRARIES unbound) endif() -- cgit v1.2.3