2019-07-02 07:13:20 +00:00
|
|
|
if(IS_DIRECTORY "${CMLIB_MODULE_DIR}")
|
2019-07-02 07:01:37 +00:00
|
|
|
set(CMLIB_SANITIZERS_DIR "${CMLIB_MODULE_DIR}/thirdparty/sanitizers/cmake")
|
2019-07-02 07:13:20 +00:00
|
|
|
if(IS_DIRECTORY "${CMLIB_SANITIZERS_DIR}")
|
2019-07-02 07:01:37 +00:00
|
|
|
list(APPEND CMAKE_MODULE_PATH ${CMLIB_SANITIZERS_DIR})
|
2019-07-02 07:43:17 +00:00
|
|
|
find_package(Sanitizers)
|
2019-07-02 07:01:37 +00:00
|
|
|
else()
|
|
|
|
message(WARNING "Sanitizers submodule not found.")
|
|
|
|
endif()
|
|
|
|
else()
|
|
|
|
message(FATAL_ERROR "CMLib directory not found.")
|
2019-07-02 05:03:01 +00:00
|
|
|
endif()
|
|
|
|
|