Добавление каталога cmake/find средствами CMLib
This commit is contained in:
parent
9b8b4fa98e
commit
549df845a4
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user