[llvm-branch-commits] [libclc] 9c5a83e - libclc: cmake configure should depend on file list
Tom Stellard via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Thu Apr 30 07:25:02 PDT 2020
Author: Jan Vesely
Date: 2020-04-30T07:22:54-07:00
New Revision: 9c5a83ed9bff0d3c1b854e6a6deed0f6e7d64ff4
URL: https://github.com/llvm/llvm-project/commit/9c5a83ed9bff0d3c1b854e6a6deed0f6e7d64ff4
DIFF: https://github.com/llvm/llvm-project/commit/9c5a83ed9bff0d3c1b854e6a6deed0f6e7d64ff4.diff
LOG: libclc: cmake configure should depend on file list
This makes sure targets are rebuilt if a file is added or removed.
Reviewer: tstellar
Differential Revision: https://reviews.llvm.org/D74662
(cherry picked from commit 814fb658ca262f5c2df47f11d47f91fac188e0d6)
Added:
Modified:
libclc/CMakeLists.txt
Removed:
################################################################################
diff --git a/libclc/CMakeLists.txt b/libclc/CMakeLists.txt
index ca65cf930562..a7a1e537cbf7 100644
--- a/libclc/CMakeLists.txt
+++ b/libclc/CMakeLists.txt
@@ -2,6 +2,16 @@ cmake_minimum_required( VERSION 3.9.2 )
project( libclc VERSION 0.2.0 LANGUAGES CXX )
include( GNUInstallDirs )
+set_property(DIRECTORY APPEND PROPERTY CMAKE_CONFIGURE_DEPENDS
+ amdgcn-amdhsa/lib/SOURCES;
+ amdgcn/lib/SOURCES;
+ amdgcn-mesa3d/lib/SOURCES;
+ amdgpu/lib/SOURCES;
+ generic/lib/SOURCES;
+ ptx/lib/SOURCES;
+ ptx-nvidiacl/lib/SOURCES;
+ r600/lib/SOURCES
+)
# List of all targets
set( LIBCLC_TARGETS_ALL
More information about the llvm-branch-commits
mailing list