Skip to content

Commit 76e422c

Browse files
switch set BOOL to option
1 parent e2c259d commit 76e422c

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

libc/CMakeLists.txt

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,9 @@ set(LIBC_BUILD_DIR ${CMAKE_CURRENT_BINARY_DIR})
4646

4747
set(LIBC_ENABLE_USE_BY_CLANG OFF CACHE BOOL "Whether or not to place libc in a build directory findable by a just built clang")
4848

49-
# LIBC_USE_HOST_KERNEL_HEADERS is brittle, and frowned upon (prefer
50-
# setting LIBC_KERNEL_HEADERS), but is simpler from a hello world linux host
51-
# build.
52-
set(LIBC_USE_HOST_KERNEL_HEADERS OFF CACHE BOOL "Add /usr/include to the header seach path")
49+
# LIBC_USE_HOST_KERNEL_HEADERS is brittle, and frowned upon (prefer setting
50+
# LIBC_KERNEL_HEADERS), but is simpler from a hello world linux host build.
51+
option(LIBC_USE_HOST_KERNEL_HEADERS "Add /usr/include to the header seach path" OFF)
5352
set(LIBC_KERNEL_HEADERS "" CACHE STRING "Path to Linux kernel headers")
5453

5554
# Defining a global namespace to enclose all libc functions.

0 commit comments

Comments
 (0)