Skip to content

Commit

Permalink
libclc: cmake configure should depend on file list
Browse files Browse the repository at this point in the history
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)
  • Loading branch information
jvesely authored and tstellar committed Apr 30, 2020
1 parent 2aa0593 commit 9c5a83e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions libclc/CMakeLists.txt
Expand Up @@ -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
Expand Down

0 comments on commit 9c5a83e

Please sign in to comment.