cmlib/CMLibSanitizers.cmake

13 lines
392 B
CMake
Raw Normal View History

if(IS_DIRECTORY "${CMLIB_MODULE_DIR}")
2019-07-02 07:01:37 +00:00
set(CMLIB_SANITIZERS_DIR "${CMLIB_MODULE_DIR}/thirdparty/sanitizers/cmake")
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.")
endif()