Skip to content

Commit b6dbfb8

Browse files
committed
Use include_guard to avoid duplicate targets
1 parent 2d3ada6 commit b6dbfb8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

runtimes/cmake/Modules/HandleLibC.cmake

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
# - runtimes-libc-static: A target representing the selected static C library.
99
#===============================================================================
1010

11+
include_guard(GLOBAL)
12+
1113
set(RUNTIMES_SUPPORTED_C_LIBRARIES system llvm-libc)
1214
set(RUNTIMES_USE_LIBC "system" CACHE STRING "Specify C library to use. Supported values are ${RUNTIMES_SUPPORTED_C_LIBRARIES}.")
1315
if (NOT "${RUNTIMES_USE_LIBC}" IN_LIST RUNTIMES_SUPPORTED_C_LIBRARIES)

0 commit comments

Comments
 (0)