summaryrefslogtreecommitdiff
blob: b1581f5417b668deae9a5dd7642179efe27f120c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
From c44560949ec78dd13fe1394bf2957e4fd5adec79 Mon Sep 17 00:00:00 2001
From: Brian Evans <grknight@gentoo.org>
Date: Wed, 14 Mar 2018 20:00:22 -0400
Subject: [PATCH] Get rid of custom target

---
 CMakeLists.txt | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index a5bff17..bbc3ddc 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -45,7 +45,5 @@ project(SPIRV-Headers)
 #   3. cmake --build . install-headers
 
 file(GLOB_RECURSE FILES include/spirv/*)
-add_custom_target(install-headers
-  COMMAND cmake -E copy_directory ${CMAKE_CURRENT_SOURCE_DIR}/include/spirv ${CMAKE_INSTALL_PREFIX}/include/spirv)
-
+INSTALL(DIRECTORY include/spirv/ DESTINATION include/spirv)
 add_subdirectory(example)
-- 
2.16.2