Skip to content

Commit 61e1cbc

Browse files
committed
fix pkg-config
1 parent 46bd6d0 commit 61e1cbc

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

CMakeLists.txt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -161,9 +161,6 @@ endif ()
161161
# ----------------------------------
162162
# Package config (.pc file) generation
163163
# ----------------------------------
164-
165-
set(prefix ${CMAKE_INSTALL_PREFIX})
166-
set(libdir ${CMAKE_INSTALL_LIBDIR})
167164
set(version ${PROJECT_VERSION})
168165

169166
# Configure the .pc file

cpp-pinyin.pc.in

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
prefix=@prefix@
1+
prefix=${pcfiledir}/../..
22

33
# cpp-pinyin pkg-config file
44

5-
exec_prefix=@prefix@/bin
6-
libdir=@prefix@/lib
7-
includedir=@prefix@/include
5+
exec_prefix=${prefix}/bin
6+
libdir=${prefix}/lib
7+
includedir=${prefix}/include
88

9-
dictdir=@prefix@/share/cpp-pinyin/dict
9+
dictdir=${prefix}/share/cpp-pinyin/dict
1010

1111
Name: cpp-pinyin
1212
Description: A lightweight Chinese/Cantonese to Pinyin library.

0 commit comments

Comments
 (0)