Browse files

support installation into lib64 via an environment variable 'LIB_SUFF…

…IX' (contributed by Vitali Lovich)
  • Loading branch information...
1 parent 00c0493 commit d4afe025bc07d9d2df89130e0baeec1901890642 @lloyd committed Mar 25, 2010
Showing with 8 additions and 2 deletions.
  1. +4 −0 BUILDING
  2. +4 −2 src/CMakeLists.txt
View
4 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
View
6 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()

0 comments on commit d4afe02

Please sign in to comment.