commit f613bc6d26095b891c7aa886de0bd6e5bfc5ce46
Author: DOOMer <doomer3d@gmail.com>
Date:   Fri Aug 16 02:26:27 2013 +0400

    Fix detect 'lib64' dir

diff --git a/CMakeLists.txt b/CMakeLists.txt
index d31a477..c56d158 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -67,11 +67,13 @@ add_definitions( -DPREFIX="${CMAKE_INSTALL_PREFIX}")
 
 message(STATUS "Install prefix: " ${CMAKE_INSTALL_PREFIX})
 
-IF (IS64BITS AND RESPECTLIB64)
+string (COMPARE EQUAL "${CMAKE_SIZEOF_VOID_P}" "8" IS64BITS)
+
+IF (IS64BITS)
     SET (LIBDIR "lib64")
-ELSE (IS64BITS AND RESPECTLIB64)
+ELSE (IS64BITS )
     SET (LIBDIR "lib")
-ENDIF (IS64BITS AND RESPECTLIB64)
+ENDIF (IS64BITS )
 set(SG_LIBDIR "${LIBDIR}/screengrab")
 set(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/${SG_LIBDIR}")
 message(STATUS "Library path: "${CMAKE_INSTALL_RPATH})
