From 553fc12a9b94d5cf871e7f1362784df7183de9bc Mon Sep 17 00:00:00 2001 From: River <26424577+wusatosi@users.noreply.github.com> Date: Sat, 11 Jan 2025 04:10:38 +0000 Subject: [PATCH] add include guard for appleclang-toolchain --- cmake/appleclang-toolchain.cmake | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmake/appleclang-toolchain.cmake b/cmake/appleclang-toolchain.cmake index eee6406..bc12103 100644 --- a/cmake/appleclang-toolchain.cmake +++ b/cmake/appleclang-toolchain.cmake @@ -14,6 +14,8 @@ # sanitizers. Note that apple clang does not support leak sanitizer. # - TSan: configures clang and clang++ to enable the use of thread sanitizer. +include_guard(GLOBAL) + set(CMAKE_C_COMPILER clang) set(CMAKE_CXX_COMPILER clang++)