Fix cmake file to install libs in the right path on 64 bit systems.
For 64bit, pkgconfig/expat.pc and libexpat.so should go to
${prefix}/lib64 , not ${prefix}/lib
From 177c40afcfa9e2ec552a046c34172248434612f8 Mon Sep 17 00:00:00 2001
From: Green Fox mail.green.fox@gmail.com
Date: Mon, 3 Mar 2014 06:28:01 +0900
Subject: [PATCH] Fix cmake file to install libs in the right path on 64 bit
systems.
CMakeLists.txt | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 0c923ba..785fc01 100755
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -63,17 +63,17 @@ endif(BUILD_shared)
add_library(expat ${_SHARED} ${expat_SRCS})
install(TARGETS expat RUNTIME DESTINATION bin
set(prefix ${CMAKE_INSTALL_PREFIX})
set(exec_prefix "\${prefix}/bin")
-set(libdir "\${prefix}/lib")
+set(libdir "\${prefix}/lib${LIB_SUFFIX}")
set(includedir "\${prefix}/include")
configure_file(expat.pc.in ${CMAKE_CURRENT_BINARY_DIR}/expat.pc)
install(FILES lib/expat.h lib/expat_external.h DESTINATION include)
-install(FILES ${CMAKE_CURRENT_BINARY_DIR}/expat.pc DESTINATION lib/pkgconfig)
+install(FILES ${CMAKE_CURRENT_BINARY_DIR}/expat.pc DESTINATION lib${LIB_SUFFIX}/pkgconfig)
--
1.7.12.1
I am unsure if this is the right way to go: On amd64 Debian jessie I see /lib64 but no /usr/lib64. Any ideas?
No reply for a year, closing as obsolete.