Проверка наличия каталогов
This commit is contained in:
parent
40d824a999
commit
dcfc5e9e03
@ -11,7 +11,7 @@ foreach(_m ${CMAKE_MODULE_PATH})
|
||||
endif()
|
||||
endforeach()
|
||||
|
||||
if(CMLIB_MODULE_DIR)
|
||||
if(IS_DIRECTORY "${CMLIB_MODULE_DIR}")
|
||||
if(NOT DEFINED CMLIB_THIRDPARTY_DIR)
|
||||
set(CMLIB_THIRDPARTY_DIR "${CMLIB_MODULE_DIR}/thirdparty")
|
||||
list(APPEND CMAKE_MODULE_PATH ${CMLIB_THIRDPARTY_DIR})
|
||||
|
@ -1,6 +1,6 @@
|
||||
if(DIRECTORY CMLIB_MODULE_DIR)
|
||||
if(IS_DIRECTORY "${CMLIB_MODULE_DIR}")
|
||||
set(CMLIB_SANITIZERS_DIR "${CMLIB_MODULE_DIR}/thirdparty/sanitizers/cmake")
|
||||
if(DIRECTORY CMLIB_SANITIZERS_DIR)
|
||||
if(IS_DIRECTORY "${CMLIB_SANITIZERS_DIR}")
|
||||
list(APPEND CMAKE_MODULE_PATH ${CMLIB_SANITIZERS_DIR})
|
||||
else()
|
||||
message(WARNING "Sanitizers submodule not found.")
|
||||
|
Loading…
Reference in New Issue
Block a user