From 3ef9a13d76d1974a42b3889347ada6021905bb47 Mon Sep 17 00:00:00 2001 From: Anas Nashif Date: Wed, 20 Mar 2013 17:45:59 -0700 Subject: [PATCH] Fixed hardcoding of lib path in .pc file Change-Id: Iba32143f725edd9eff6dafa33414942bb8bb7cda --- CMakeLists.txt | 4 ++-- bundle.pc.in | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 95b8e07..a123924 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -38,7 +38,7 @@ CONFIGURE_FILE(${CMAKE_SOURCE_DIR}/bundle.pc.in ${CMAKE_BINARY_DIR}/bundle.pc @O ### Install install(TARGETS bundle - DESTINATION lib${LIB_SUFFIX} + DESTINATION ${LIB_INSTALL_DIR} ) install(FILES ${CMAKE_SOURCE_DIR}/include/bundle.h @@ -46,7 +46,7 @@ install(FILES DESTINATION include/ ) install(FILES ${CMAKE_BINARY_DIR}/bundle.pc - DESTINATION lib${LIB_SUFFIX}/pkgconfig/ + DESTINATION ${LIB_INSTALL_DIR}/pkgconfig/ ) diff --git a/bundle.pc.in b/bundle.pc.in index aa9cb10..89f192f 100644 --- a/bundle.pc.in +++ b/bundle.pc.in @@ -2,7 +2,7 @@ prefix=/usr exec_prefix=${prefix} -libdir=${prefix}/lib +libdir=@LIB_INSTALL_DIR@ includedir=${prefix}/include Name: bundle -- 2.7.4