Добавление каталога cmake/find средствами CMLib

This commit is contained in:
Andrei Astafev 2021-06-12 15:08:52 +03:00
parent 9b8b4fa98e
commit 549df845a4

View File

@ -38,3 +38,10 @@ if(IS_DIRECTORY "${CMLIB_MODULE_DIR}")
else() else()
message(FATAL_ERROR "CMLib directory not found.") message(FATAL_ERROR "CMLib directory not found.")
endif() 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()