]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/commitdiff
cmake: Fix libdir value in pkgconfig file (#2407)
authorPhilippe Normand <redacted>
Sat, 7 Sep 2024 08:18:17 +0000 (09:18 +0100)
committerGitHub <redacted>
Sat, 7 Sep 2024 08:18:17 +0000 (11:18 +0300)
Depending on the OS the lib dir can vary, on Fedora for instance it is
"${prefix}/lib64". Instead of hard-coding the directory name, let CMake fill
this variable for us.

cmake/whisper.pc.in

index 67aaafdeaae626353a615cc6d2a12af290d9f724..50ab4f8285adeb84c02bcd40b3d732a06be29a4a 100644 (file)
@@ -1,6 +1,6 @@
 prefix=@CMAKE_INSTALL_PREFIX@
 exec_prefix=${prefix}
-libdir=${exec_prefix}/lib
+libdir=@CMAKE_INSTALL_FULL_LIBDIR@
 includedir=${prefix}/include
 
 Name: whisper