Description: <short summary of the patch>
 TODO: Put a short summary on the line above and replace this paragraph
 with a longer explanation of this change. Complete the meta-information
 with other relevant fields (see below for details). To make it easier, the
 information below has been extracted from the changelog. Adjust it or drop
 it.
 .
 libsmartslog0 (0.6.0-1) stable; urgency=medium
 .
   * CMake version set to 2.8
   * Support SPARQL-endpoint throw C KPI
Author: Kirill Kulakov <kulakov@cs.karelia.ru>

---
The information above should follow the Patch Tagging Guidelines, please
checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here
are templates for supplementary fields that you might want to add:

Origin: <vendor|upstream|other>, <url of original patch>
Bug: <url in upstream bugtracker>
Bug-Debian: https://bugs.debian.org/<bugnumber>
Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber>
Forwarded: <no|not-needed|url proving that it has been forwarded>
Reviewed-By: <name and email of someone who approved the patch>
Last-Update: <YYYY-MM-DD>

--- libsmartslog0-0.6.0.orig/CMakeLists.txt
+++ libsmartslog0-0.6.0/CMakeLists.txt
@@ -92,8 +92,12 @@ if (NOT DEFINED WITH_HEADERS)
     set(WITH_HEADERS 1)
 endif (NOT DEFINED WITH_HEADERS)
 
-if(NOT DEFINED CMAKE_INSTALL_LIBDIR)
+if(NOT DEFINED CMAKE_INSTALL_LIBDIR)
+    if (CMAKE_SYSTEM_PROCESSOR EQUAL "x86_64")
+  set(CMAKE_INSTALL_LIBDIR "\${prefix}/lib64")
+    else (CMAKE_SYSTEM_PROCESSOR EQUAL "x86_64")
   set(CMAKE_INSTALL_LIBDIR "\${prefix}/lib")
+    endif(CMAKE_SYSTEM_PROCESSOR == "x86_64")
 endif(NOT DEFINED CMAKE_INSTALL_LIBDIR)
 
 if(NOT DEFINED INCLUDE_INSTALL_DIR)
