build: unbreak out-of-tree build of pkgconfig files 46/27046/3
authorRafal Krypa <r.krypa@samsung.com>
Wed, 3 Sep 2014 14:22:45 +0000 (16:22 +0200)
committerLukasz Wojciechowski <l.wojciechow@partner.samsung.com>
Thu, 4 Sep 2014 17:48:37 +0000 (10:48 -0700)
Fix regression introduced recently in 21175a33. "Make install" fails on
pkgconfig files when building out-of-tree.

Change-Id: Ib544993ae4daa784ca93d9e115eeba9830957ecc
Signed-off-by: Rafal Krypa <r.krypa@samsung.com>
pkgconfig/cynara-admin/CMakeLists.txt
pkgconfig/cynara-client/CMakeLists.txt

index 6adc6b9..c66ec5c 100644 (file)
@@ -20,7 +20,7 @@
 CONFIGURE_FILE(cynara-admin.pc.in cynara-admin.pc @ONLY)
 
 INSTALL(FILES
-    cynara-admin.pc
+    ${CMAKE_BINARY_DIR}/pkgconfig/cynara-admin/cynara-admin.pc
     DESTINATION
     ${LIB_INSTALL_DIR}/pkgconfig
     )
index ecb78c7..03ee41e 100644 (file)
@@ -20,7 +20,7 @@
 CONFIGURE_FILE(cynara-client.pc.in cynara-client.pc @ONLY)
 
 INSTALL(FILES
-    cynara-client.pc
+    ${CMAKE_BINARY_DIR}/pkgconfig/cynara-client/cynara-client.pc
     DESTINATION
     ${LIB_INSTALL_DIR}/pkgconfig
     )