[packages/powercap] - relative dirs for cmake

qboosh qboosh at pld-linux.org
Sat Nov 14 08:39:02 CET 2020


commit 5b163d5c512394bdf40a04b99c1b32eb7496c628
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sat Nov 14 08:38:55 2020 +0100

    - relative dirs for cmake

 powercap.spec | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/powercap.spec b/powercap.spec
index 806660d..0e0dd79 100644
--- a/powercap.spec
+++ b/powercap.spec
@@ -42,7 +42,10 @@ Pliki nagłówkowe biblioteki powercap.
 %build
 install -d build
 cd build
-%cmake ..
+# .pc file generation expects relative CMAKE_INSTALL_{INCLUDE,LIB}DIR
+%cmake .. \
+	-DCMAKE_INSTALL_INCLUDEDIR=include \
+	-DCMAKE_INSTALL_LIBDIR=%{_lib}
 
 %{__make}
 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/powercap.git/commitdiff/5b163d5c512394bdf40a04b99c1b32eb7496c628



More information about the pld-cvs-commit mailing list