diff options
author | Lloyd Hilaiel <lloyd@hilaiel.com> | 2010-03-25 10:53:35 -0600 |
---|---|---|
committer | Lloyd Hilaiel <lloyd@hilaiel.com> | 2010-03-25 10:53:35 -0600 |
commit | d4afe025bc07d9d2df89130e0baeec1901890642 (patch) | |
tree | 4c774a123943bab8e8a976f0df04365405a2bd4d | |
parent | 00c04939ebf4a0ba51ab4a51666ddb2700fc733b (diff) | |
download | yajl-d4afe025bc07d9d2df89130e0baeec1901890642.tar.gz |
support installation into lib64 via an environment variable 'LIB_SUFFIX' (contributed by Vitali Lovich)
-rw-r--r-- | BUILDING | 4 | ||||
-rw-r--r-- | src/CMakeLists.txt | 6 |
2 files changed, 8 insertions, 2 deletions
@@ -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() |