Skip to content

Commit 36370bc

Browse files
jpc0ericniebler
andcommitted
Use Top level check instead of explicit option
Co-authored-by: Eric Niebler <[email protected]>
1 parent 4c56837 commit 36370bc

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

CMakeLists.txt

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,7 @@ message(STATUS "Build date : ${STDEXEC_BUILD_DATE}")
6767
message(STATUS "Build year : ${STDEXEC_BUILD_YEAR}")
6868
message(STATUS)
6969

70-
set(INTEGRATE_CLANG_TOOLING ${STDEXEC_INTEGRATE_CLANG_TOOLING})
71-
72-
if (INTEGRATE_CLANG_TOOLING)
70+
if (STDEXEC_IS_TOP_LEVEL)
7371
# Integrate with LLVM/clang tooling
7472
include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/clangd_compile_info.cmake)
7573
endif()
@@ -554,7 +552,6 @@ option(STDEXEC_ENABLE_IO_URING_TESTS "Enable io_uring tests" ${STDEXEC_FOUND_IO_
554552

555553
option(STDEXEC_BUILD_DOCS "Build stdexec documentation" OFF)
556554
option(STDEXEC_BUILD_EXAMPLES "Build stdexec examples" ON)
557-
option(STDEXEC_INTEGRATE_CLANG_TOOLING "Integrate with clang tooling" ON)
558555

559556
# Configure documentation
560557
if(STDEXEC_BUILD_DOCS)

0 commit comments

Comments
 (0)