Skip to content

Commit 9c5a83e

Browse files
jveselytstellar
authored andcommitted
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 814fb65)
1 parent 2aa0593 commit 9c5a83e

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

libclc/CMakeLists.txt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,16 @@ cmake_minimum_required( VERSION 3.9.2 )
22

33
project( libclc VERSION 0.2.0 LANGUAGES CXX )
44
include( GNUInstallDirs )
5+
set_property(DIRECTORY APPEND PROPERTY CMAKE_CONFIGURE_DEPENDS
6+
amdgcn-amdhsa/lib/SOURCES;
7+
amdgcn/lib/SOURCES;
8+
amdgcn-mesa3d/lib/SOURCES;
9+
amdgpu/lib/SOURCES;
10+
generic/lib/SOURCES;
11+
ptx/lib/SOURCES;
12+
ptx-nvidiacl/lib/SOURCES;
13+
r600/lib/SOURCES
14+
)
515

616
# List of all targets
717
set( LIBCLC_TARGETS_ALL

0 commit comments

Comments
 (0)