[Openmp-commits] [openmp] add include(AddLLVM) to openmp standalone build when building docs (PR #171157)

Raymond Baker via Openmp-commits openmp-commits at lists.llvm.org
Mon Dec 8 08:58:21 PST 2025


https://github.com/RaymondBakerIBM created https://github.com/llvm/llvm-project/pull/171157

Error hit while trying to build openmp docs 

```
CMake Error at /usr/lib64/cmake/llvm/AddSphinxTarget.cmake:62 (get_subproject_title):
  Unknown CMake command "get_subproject_title".
Call Stack (most recent call first):
  docs/CMakeLists.txt:89 (add_sphinx_target)
```

This function is defined in `llvm/cmake/modules/AddLLVM.cmake`. This PR adds includes that cmake file when in standalone mode and sphinx is enabled

>From 08780600a54d78ea2c31ee4745c10847008711f0 Mon Sep 17 00:00:00 2001
From: Raymond Baker <raymond.baker at ibm.com>
Date: Mon, 8 Dec 2025 11:08:44 -0500
Subject: [PATCH] add include(AddLLVM) to openmp standalone build when
 LLVM_ENABLE_SPHINX is true

---
 openmp/CMakeLists.txt | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/openmp/CMakeLists.txt b/openmp/CMakeLists.txt
index df568419824a6..7e71f47385f76 100644
--- a/openmp/CMakeLists.txt
+++ b/openmp/CMakeLists.txt
@@ -29,6 +29,10 @@ if (OPENMP_STANDALONE_BUILD)
     set(CMAKE_BUILD_TYPE Release)
   endif()
 
+  if (LLVM_ENABLE_SPHINX)
+    include(AddLLVM)
+  endif()
+
   # Group common settings.
   set(OPENMP_ENABLE_WERROR FALSE CACHE BOOL
     "Enable -Werror flags to turn warnings into errors for supporting compilers.")



More information about the Openmp-commits mailing list