aboutsummaryrefslogtreecommitdiffstats
path: root/meta-amdfalconx86/recipes-graphics/lunarg-sdk/vulkan-samples/0003-obey-CMAKE_INSTALL_PREFIX.patch
blob: 7a341b37c81303431e67de338f4d3c60a5860f94 (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
26
27
28
29
30
31
From 4d1bb4d2803f7c025abf84bfed73889ac3951044 Mon Sep 17 00:00:00 2001
From: Awais Belal <awais_belal@mentor.com>
Date: Thu, 1 Sep 2016 13:36:38 +0500
Subject: [PATCH] obey CMAKE_INSTALL_PREFIX

Unsetting CMAKE_INSTALL_PREFIX breaks relative installation
paths. The recent updates to cmake.bbclass requires
using the installation prefix to allow installing to
correct hierarchy under yocto environment.

Signed-off-by: Awais Belal <awais_belal@mentor.com>
---
 CMakeLists.txt | 2 --
 1 file changed, 2 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 22fc7ad..54fa821 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -61,8 +61,6 @@ if(NOT WIN32)
     include(FindPkgConfig)
 endif()
 
-set (CMAKE_INSTALL_PREFIX "")
-
 if (CMAKE_COMPILER_IS_GNUCC OR CMAKE_C_COMPILER_ID MATCHES "Clang")
     set(COMMON_COMPILE_FLAGS "-Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers")
     set(COMMON_COMPILE_FLAGS "${COMMON_COMPILE_FLAGS} -fno-strict-aliasing -fno-builtin-memcmp")
-- 
1.9.1