[Libwebsockets] [libwebsockets] #26: pkg-config prefix is hardcoded

Trac trac at libwebsockets.org
Fri Apr 12 02:40:05 CEST 2013


#26: pkg-config prefix is hardcoded
-----------------------------------+--------------------
 Reporter:  thinkski               |      Owner:  agreen
     Type:  defect                 |     Status:  new
 Priority:  major                  |  Milestone:
Component:  libwebsockets library  |    Version:
 Keywords:                         |
-----------------------------------+--------------------
 Cannot use pkg-config if library installed anywhere other than /usr/local.
 This patch fixes the problem:
 {{{
 --- CMakeLists.txt.orig 2013-04-11 20:35:54.000000000 -0400
 +++ CMakeLists.txt      2013-04-11 20:26:34.000000000 -0400
 @@ -698,7 +698,7 @@
  # 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
 }}}

-- 
Ticket URL: <http://libwebsockets.org/trac/ticket/26>
libwebsockets <http://libwebsockets.org>
libwebsockets C library



More information about the Libwebsockets mailing list