[libclc] 814fb65 - libclc: cmake configure should depend on file list
Jan Vesely via cfe-commits
cfe-commits at lists.llvm.org
Tue Feb 25 01:47:14 PST 2020
Author: Jan Vesely
Date: 2020-02-25T04:43:14-05:00
New Revision: 814fb658ca262f5c2df47f11d47f91fac188e0d6
URL: https://github.com/llvm/llvm-project/commit/814fb658ca262f5c2df47f11d47f91fac188e0d6
DIFF: https://github.com/llvm/llvm-project/commit/814fb658ca262f5c2df47f11d47f91fac188e0d6.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
Added:
Modified:
libclc/CMakeLists.txt
Removed:
################################################################################
diff --git a/libclc/CMakeLists.txt b/libclc/CMakeLists.txt
index 440eab076509..4afed0d8f994 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 cfe-commits
mailing list