Look in lib64/ for x86_64 libs on RHEL(-like) distro

This commit is contained in:
Roland Kaufmann
2013-10-23 10:44:35 +02:00
parent 9d4cd49427
commit 47934fd678
+5
View File
@@ -19,6 +19,11 @@ find_path (CJSON_INCLUDE_DIR
DOC "Path to cjson library header files"
${_no_default_path} )
# find out the size of a pointer. this is required to only search for
# libraries in the directories relevant for the architecture
if (CMAKE_SIZEOF_VOID_P)
math (EXPR _BITS "8 * ${CMAKE_SIZEOF_VOID_P}")
endif (CMAKE_SIZEOF_VOID_P)
find_library (CJSON_LIBRARY
NAMES "cjson"