From e75a759693bb8d0ca5ad92000d338cdefb04e93e Mon Sep 17 00:00:00 2001 From: Boris Pek Date: Thu, 8 May 2014 22:52:10 +0400 Subject: [PATCH] Fix cmake script for searching sqlite3 properly. This is important for Debian, Ubuntu and other systems based on them. Details: https://wiki.debian.org/Multiarch https://wiki.ubuntu.com/MultiarchSpec Have in mind that there are MIPS, ARM and many other architectures... --- cmake/Modules/FindSqlite3.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/Modules/FindSqlite3.cmake b/cmake/Modules/FindSqlite3.cmake index 7e015eb..4b2ad61 100644 --- a/cmake/Modules/FindSqlite3.cmake +++ b/cmake/Modules/FindSqlite3.cmake @@ -44,7 +44,7 @@ IF ( NOT SQLITE3_FOUND AND NOT PKG_CONFIG_FOUND ) /opt/local/lib /sw/lib /usr/lib - /usr/lib/x86_64-gnu-linux + /usr/lib/${CMAKE_LIBRARY_ARCHITECTURE} /usr/local/lib /usr/lib64 /usr/local/lib64