1 From 01b5478638c705af29f09ad4ed70289f70a21dcf Mon Sep 17 00:00:00 2001
2 From: "Yann E. MORIN" <yann.morin.1998@free.fr>
3 Date: Mon, 6 Feb 2017 14:04:47 +0100
4 Subject: [PATCH] p8-platform-config: fix lookup paths
6 Use the proper methods to find the headers and the library.
8 Signed-off-by: Samuel Martin <s.martin49@gmail.com>
9 Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
11 p8-platform-config.cmake.in | 4 ++--
12 1 file changed, 2 insertions(+), 2 deletions(-)
14 diff --git a/p8-platform-config.cmake.in b/p8-platform-config.cmake.in
15 index 47f30f1..f59418d 100644
16 --- a/p8-platform-config.cmake.in
17 +++ b/p8-platform-config.cmake.in
20 # propagate these properties from one build system to the other
21 set (p8-platform_VERSION "@p8-platform_VERSION_MAJOR@.@p8-platform_VERSION_MINOR@")
22 -set (p8-platform_INCLUDE_DIRS @p8-platform_INCLUDE_DIRS@ @CMAKE_INSTALL_PREFIX@/include)
23 +find_path (p8-platform_INCLUDE_DIRS p8-platform/os.h)
24 set (p8-platform_LIBRARY_DIRS "@CMAKE_LIBRARY_OUTPUT_DIRECTORY@")
25 set (p8-platform_LINKER_FLAGS "@p8-platform_LINKER_FLAGS@")
26 set (p8-platform_CONFIG_VARS "@p8-platform_CONFIG_VARS@")
27 @@ -19,7 +19,7 @@ set (p8-platform_CONFIG_VARS "@p8-platform_CONFIG_VARS@")
29 set (p8-platform_LIBRARY "@CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_LIBDIR@/p8-platform.lib")
31 - set (p8-platform_LIBRARY "-L@CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_LIBDIR@ -lp8-platform")
32 + find_library (p8-platform_LIBRARY p8-platform)
34 set (p8-platform_LIBRARIES ${p8-platform_LIBRARY} "@p8-platform_LIBRARIES@")
35 mark_as_advanced (p8-platform_LIBRARY)