From dd93a0c4167184bd2d125398c7e6e489907cb2d4 Mon Sep 17 00:00:00 2001 From: thinkski Date: Fri, 12 Apr 2013 10:31:46 +0800 Subject: [PATCH] pkg config avoid hardcoded prefix Signed-off-by: thinkski --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8f4d099d..949126d7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -698,7 +698,7 @@ if (UNIX) # Generate and install pkgconfig. # (This is not indented, because the tabs will be part of the output) file(WRITE ${PROJECT_BINARY_DIR}/libwebsockets.pc -"prefix=/usr/local +"prefix="${CMAKE_INSTALL_PREFIX}" exec_prefix=\${prefix} libdir=\${exec_prefix}/lib${LIB_SUFFIX} includedir=\${prefix}/include