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()