Permalink
Browse files

implement Vitali's suggestion of a *cmake* var for lib64 support rath…

…er than *environment* variable
  • Loading branch information...
1 parent d4afe02 commit 402d4a3c62fc96d75ad55439f39eea06d2f30e37 @lloyd committed Mar 25, 2010
Showing with 5 additions and 5 deletions.
  1. +1 −1 BUILDING
  2. +4 −4 src/CMakeLists.txt
View
@@ -15,7 +15,7 @@ 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
+NOTE: for 64-bit systems where lib64 is used you can pass the cmake
variable LIB_SUFFIX to cause installation into the system's 'lib64'
directory.
View
@@ -77,9 +77,9 @@ ENDFOREACH (header ${PUB_HDRS})
INCLUDE_DIRECTORIES(${incDir}/..)
IF(NOT WIN32)
- # 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})
+ # at build time you may specify the cmake variable LIB_SUFFIX to handle
+ # 64-bit systems which use 'lib64'
+ INSTALL(TARGETS yajl LIBRARY DESTINATION lib${LIB_SUFFIX})
+ INSTALL(TARGETS yajl_s ARCHIVE DESTINATION lib${LIB_SUFFIX})
INSTALL(DIRECTORY api/ DESTINATION include/yajl)
ENDIF()

0 comments on commit 402d4a3

Please sign in to comment.