summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLloyd Hilaiel <lloyd@hilaiel.com>2010-03-25 10:53:35 -0600
committerLloyd Hilaiel <lloyd@hilaiel.com>2010-03-25 10:53:35 -0600
commitd4afe025bc07d9d2df89130e0baeec1901890642 (patch)
tree4c774a123943bab8e8a976f0df04365405a2bd4d
parent00c04939ebf4a0ba51ab4a51666ddb2700fc733b (diff)
downloadyajl-d4afe025bc07d9d2df89130e0baeec1901890642.tar.gz
support installation into lib64 via an environment variable 'LIB_SUFFIX' (contributed by Vitali Lovich)
-rw-r--r--BUILDING4
-rw-r--r--src/CMakeLists.txt6
2 files changed, 8 insertions, 2 deletions
diff --git a/BUILDING b/BUILDING
index 74589e1..3974454 100644
--- a/BUILDING
+++ b/BUILDING
@@ -15,5 +15,9 @@ OR, attain CMake and build by hand:
4. make
5. build output left in yajl-X.Y.Z
+NOTE: for 64-bit systems where lib64 is used you can pass the environment
+ variable LIB_SUFFIX to cause installation into the system's 'lib64'
+ directory.
+
best,
lloyd
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 2d9a6cb..2298213 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -77,7 +77,9 @@ ENDFOREACH (header ${PUB_HDRS})
INCLUDE_DIRECTORIES(${incDir}/..)
IF(NOT WIN32)
- INSTALL(TARGETS yajl LIBRARY DESTINATION lib)
- INSTALL(TARGETS yajl_s ARCHIVE DESTINATION lib)
+ # at build time you may specify LIB_SUFFIX to handle 64-bit systems which
+ # use 'lib64'
+ INSTALL(TARGETS yajl LIBRARY DESTINATION lib$ENV{LIB_SUFFIX})
+ INSTALL(TARGETS yajl_s ARCHIVE DESTINATION lib$ENV{LIB_SUFFIX})
INSTALL(DIRECTORY api/ DESTINATION include/yajl)
ENDIF()