Blame SOURCES/0046-Install-the-agent-lib-to-non-arch-specific-directory.patch

f9a98e
From 257d7b776adcf93f26807b887f97f529179c37a1 Mon Sep 17 00:00:00 2001
f9a98e
From: Jakub Filak <jfilak@redhat.com>
f9a98e
Date: Wed, 29 Oct 2014 10:16:16 +0100
f9a98e
Subject: [PATCH] Install the agent lib to non arch specific directory
f9a98e
f9a98e
https://fedorahosted.org/fesco/ticket/961
f9a98e
---
f9a98e
 CMakeLists.txt     | 4 ++--
f9a98e
 src/CMakeLists.txt | 2 +-
f9a98e
 2 files changed, 3 insertions(+), 3 deletions(-)
f9a98e
f9a98e
diff --git a/CMakeLists.txt b/CMakeLists.txt
f9a98e
index 33a5e03..316ce8f 100644
f9a98e
--- a/CMakeLists.txt
f9a98e
+++ b/CMakeLists.txt
f9a98e
@@ -43,8 +43,8 @@ if(NOT BIN_INSTALL_DIR)
f9a98e
     set(BIN_INSTALL_DIR ${CMAKE_INSTALL_PREFIX}/bin)
f9a98e
 endif()
f9a98e
 
f9a98e
-if(NOT LIB_INSTALL_DIR)
f9a98e
-    set(LIB_INSTALL_DIR ${CMAKE_INSTALL_PREFIX}/lib)
f9a98e
+if(NOT JNIAGENTLIB_INSTALL_DIR)
f9a98e
+    set(JNIAGENTLIB_INSTALL_DIR ${CMAKE_INSTALL_PREFIX}/lib/${CMAKE_PROJECT_NAME})
f9a98e
 endif()
f9a98e
 
f9a98e
 if(NOT SYSCONF_INSTALL_DIR)
f9a98e
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
f9a98e
index d084401..e3e421b 100644
f9a98e
--- a/src/CMakeLists.txt
f9a98e
+++ b/src/CMakeLists.txt
f9a98e
@@ -20,4 +20,4 @@ set_target_properties(
f9a98e
 target_link_libraries(AbrtChecker ${PC_LIBREPORT_LIBRARIES})
f9a98e
 target_link_libraries(AbrtChecker ${PC_JOURNALD_LIBRARIES})
f9a98e
 
f9a98e
-install(TARGETS AbrtChecker DESTINATION ${LIB_INSTALL_DIR})
f9a98e
+install(TARGETS AbrtChecker DESTINATION ${JNIAGENTLIB_INSTALL_DIR})
f9a98e
-- 
f9a98e
1.8.3.1
f9a98e