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

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