implement Vitali's suggestion of a *cmake* var for lib64 support rather than *environment* variable

This commit is contained in:
Lloyd Hilaiel 2010-03-25 11:08:38 -06:00
parent d4afe025bc
commit 402d4a3c62
2 changed files with 5 additions and 5 deletions

View File

@ -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 File

@ -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()