[libclc] [libclc][CMake][NFC] Delete dead code LLVM_PACKAGE_VERSION (PR #191943)
Wenju He via cfe-commits
cfe-commits at lists.llvm.org
Mon Apr 13 21:50:47 PDT 2026
https://github.com/wenju-he created https://github.com/llvm/llvm-project/pull/191943
Use of LLVM_PACKAGE_VERSION in AddLibclc.cmake was dropped by e20ae16ce672.
>From 39b693df5a5168ed66c411a9b9a5e6324b56bb32 Mon Sep 17 00:00:00 2001
From: Wenju He <wenju.he at intel.com>
Date: Tue, 14 Apr 2026 06:47:25 +0200
Subject: [PATCH] [libclc][CMake][NFC] Delete dead code LLVM_PACKAGE_VERSION
Use of LLVM_PACKAGE_VERSION in AddLibclc.cmake was dropped by e20ae16ce672.
---
libclc/CMakeLists.txt | 7 -------
1 file changed, 7 deletions(-)
diff --git a/libclc/CMakeLists.txt b/libclc/CMakeLists.txt
index 685b9032aa92e..277cfcf3b0d09 100644
--- a/libclc/CMakeLists.txt
+++ b/libclc/CMakeLists.txt
@@ -50,8 +50,6 @@ if( LIBCLC_STANDALONE_BUILD OR CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DI
find_package(LLVM REQUIRED HINTS "${LLVM_CMAKE_DIR}")
include(AddLLVM)
- message( STATUS "libclc LLVM version: ${LLVM_PACKAGE_VERSION}" )
-
foreach( tool IN ITEMS llvm-link opt )
find_program( LLVM_TOOL_${tool} ${tool} PATHS ${LLVM_TOOLS_BINARY_DIR} NO_DEFAULT_PATH )
set( ${tool}_exe ${LLVM_TOOL_${tool}} )
@@ -64,11 +62,6 @@ if( LIBCLC_STANDALONE_BUILD OR CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DI
else()
set( LIBCLC_STANDALONE_BUILD FALSE )
- if( NOT LLVM_PACKAGE_VERSION )
- set( LLVM_PACKAGE_VERSION ${LLVM_VERSION} )
- endif()
- set( PACKAGE_VERSION ${LLVM_PACKAGE_VERSION} )
-
# Note that we check this later (for both build types) but we can provide a
# more useful error message when built in-tree. We assume that LLVM tools are
# always available so don't warn here.
More information about the cfe-commits
mailing list