[libclc] [libclc] Fix building top-level 'libclc' target (PR #150972)

Wenju He via cfe-commits cfe-commits at lists.llvm.org
Mon Jul 28 17:57:59 PDT 2025


================
@@ -5,6 +5,9 @@ if(CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR)
 endif()
 set(LLVM_SUBPROJECT_TITLE "libclc")
 
+# Top level target used to build all Libclc libraries.
+add_custom_target( libclc ALL )
----------------
wenju-he wrote:

can we put this line near line 48~49, or after line 11? Setting CMAKE_CXX_STANDARD is a setup of the project and is likely better placed before defining a target.

https://github.com/llvm/llvm-project/pull/150972


More information about the cfe-commits mailing list