From 549df845a47b75a7cb62153c53e108d6116be161 Mon Sep 17 00:00:00 2001 From: Andrey Astafyev Date: Sat, 12 Jun 2021 15:08:52 +0300 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D0=B8=D0=B5=20=D0=BA=D0=B0=D1=82=D0=B0=D0=BB=D0=BE=D0=B3?= =?UTF-8?q?=D0=B0=20cmake/find=20=D1=81=D1=80=D0=B5=D0=B4=D1=81=D1=82?= =?UTF-8?q?=D0=B2=D0=B0=D0=BC=D0=B8=20CMLib?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CMLibGlobalVariables.cmake | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/CMLibGlobalVariables.cmake b/CMLibGlobalVariables.cmake index 6719027..dc179ee 100644 --- a/CMLibGlobalVariables.cmake +++ b/CMLibGlobalVariables.cmake @@ -38,3 +38,10 @@ if(IS_DIRECTORY "${CMLIB_MODULE_DIR}") else() message(FATAL_ERROR "CMLib directory not found.") endif() + +if(NOT DEFINED CMLIB_CMAKE_DIR) + get_filename_component(CMLIB_CMAKE_DIR ${CMLIB_MODULE_DIR} DIRECTORY) + if(IS_DIRECTORY "${CMLIB_CMAKE_DIR}/find") + list(APPEND CMAKE_MODULE_PATH "${CMLIB_CMAKE_DIR}/find") + endif() +endif()