cmlib/CMLibSanitizers.cmake

13 lines
426 B
CMake
Raw Normal View History

if(IS_DIRECTORY "${CMLIB_MODULE_DIR}")
2021-06-12 11:35:58 +00:00
set(CMLIB_SANITIZERS_DIR "${CMLIB_MODULE_DIR}/thirdparty/sanitizers")
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()
2019-08-13 19:09:42 +00:00
message(STATUS "CMLIB warning:")
message(STATUS " Sanitizers submodule is not found.")
2019-07-02 07:01:37 +00:00
endif()
else()
message(FATAL_ERROR "CMLib directory not found.")
endif()