2016-10-05 10:35:07 +00:00
|
|
|
From: Petr Tesarik <ptesarik@suse.com>
|
2016-10-05 13:17:08 +00:00
|
|
|
Date: Wed Oct 5 08:48:38 2016 +0200
|
2016-10-05 10:35:07 +00:00
|
|
|
Subject: Avoid using TARGET_* cmake directives
|
2016-10-05 13:17:08 +00:00
|
|
|
Upstream: never; compatibility with older SUSE distros
|
|
|
|
|
|
|
|
The TARGET_INCLUDE_DIRECTORIES directive was added in cmake 3.0.2.
|
|
|
|
It is not recognized by older versions.
|
2016-10-05 10:35:07 +00:00
|
|
|
|
|
|
|
This patch can be removed when we stop caring about SLES11...
|
|
|
|
|
|
|
|
Signed-off-by: Petr Tesarik <ptesarik@suse.com>
|
|
|
|
---
|
2016-10-05 13:17:08 +00:00
|
|
|
init/CMakeLists.txt | 4 ++--
|
|
|
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
2016-10-05 10:35:07 +00:00
|
|
|
|
|
|
|
--- a/init/CMakeLists.txt
|
|
|
|
+++ b/init/CMakeLists.txt
|
2016-10-05 13:17:08 +00:00
|
|
|
@@ -20,8 +20,8 @@
|
2016-10-05 10:35:07 +00:00
|
|
|
ADD_EXECUTABLE(device-timeout-generator
|
|
|
|
device-timeout-generator.c
|
|
|
|
)
|
|
|
|
-TARGET_INCLUDE_DIRECTORIES(device-timeout-generator
|
2016-10-05 13:17:08 +00:00
|
|
|
- PUBLIC ${BLKID_INCLUDE_DIRS})
|
|
|
|
+INCLUDE_DIRECTORIES(
|
|
|
|
+ ${BLKID_INCLUDE_DIRS})
|
2016-10-05 10:35:07 +00:00
|
|
|
TARGET_LINK_LIBRARIES(device-timeout-generator
|
|
|
|
${BLKID_LIBRARIES})
|
2016-10-05 13:17:08 +00:00
|
|
|
|