From bfa7d8c7ebb3b00b883622d9273d30ac7c4ca45a Mon Sep 17 00:00:00 2001 From: Bartosz Wieczorek Date: Fri, 19 Apr 2024 10:41:14 +0200 Subject: [PATCH] =?UTF-8?q?ksi=20deps=20sprawdza=20czy=20biblioteka=20zost?= =?UTF-8?q?a=C5=82a=20ju=C5=BC=20odnaleziona?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cmake/ksi_deps.cmake | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cmake/ksi_deps.cmake b/cmake/ksi_deps.cmake index 39a34e0..af2d6d4 100644 --- a/cmake/ksi_deps.cmake +++ b/cmake/ksi_deps.cmake @@ -11,6 +11,11 @@ function(ksi_find_library) "${INTEGR_DIR}/lib" ) + if(KSI_${ARG_LIB}_LIBARY) + message("Library ${ARG_ALIAS} already found") + return() + endif() + find_library(KSI_${ARG_LIB}_LIBARY ${ARG_LIB} NO_DEFAULT_PATH PATHS ${_ksi_lib_paths}