diff options
author | Martin Szulecki | 2009-04-05 21:10:33 +0200 |
---|---|---|
committer | Jonathan Beck | 2009-04-05 21:10:33 +0200 |
commit | dbfbb78dbd74ac6cb74fc1551de589f1855bb4cb (patch) | |
tree | 2112761184b7e000739fd9c46a87716fda61c4c7 /CMakeLists.txt | |
parent | b9d27ab3b3fb0b3b5cc2b5f9cdccb4311a9ea7bd (diff) | |
download | libplist-dbfbb78dbd74ac6cb74fc1551de589f1855bb4cb.tar.gz libplist-dbfbb78dbd74ac6cb74fc1551de589f1855bb4cb.tar.bz2 |
Fix install libdir for 64bit platform.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index ecccfc6..09ae8e8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -11,6 +11,10 @@ SET( CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake ${CMAKE_SOURCE_DIR}/cmake/modul cmake_minimum_required(VERSION 2.6) +IF(NOT DEFINED CMAKE_INSTALL_LIBDIR) + SET(CMAKE_INSTALL_LIBDIR lib CACHE PATH "Output directory for libraries") +ENDIF(NOT DEFINED CMAKE_INSTALL_LIBDIR) + FIND_PACKAGE( LibXml2 REQUIRED ) FIND_PACKAGE( GLIB2 REQUIRED ) FIND_PACKAGE( SWIG ) @@ -36,7 +40,7 @@ ADD_CUSTOM_TARGET(uninstall "${CMAKE_COMMAND}" -P "${CMAKE_CURRENT_BINARY_DIR}/c ########## PkgConfig ############################ CONFIGURE_FILE( "libplist.pc.in" "${CMAKE_CURRENT_BINARY_DIR}/libplist.pc" ) ########## INSTALL ############################## -INSTALL( FILES "${CMAKE_CURRENT_BINARY_DIR}/libplist.pc" DESTINATION ${CMAKE_INSTALL_PREFIX}/lib/pkgconfig/ ) +INSTALL( FILES "${CMAKE_CURRENT_BINARY_DIR}/libplist.pc" DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig/ ) ########## CPack ################################ INCLUDE( libplistPackaging ) |