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