mirror of https://github.com/vitalif/grive2
Set up an else-clause for IBERTY_LIBRARY and removed unnecessary BOOST-find
In ./CMakeLists.txt the added find_package( Boost ) was removed due to being unnecessary. In libgrive/CMakeLists.txt the IBERTY_LIBRARY is now set to an empty string of it was not found (otherwise the linker breaks during `cmake').pull/40/head
parent
56de93c8c7
commit
2f94168599
|
@ -3,9 +3,6 @@ cmake_minimum_required(VERSION 2.8)
|
|||
# Grive version. remember to update it for every new release!
|
||||
set( GRIVE_VERSION "0.2.0" )
|
||||
|
||||
# Actually find the boost libraries
|
||||
find_package( Boost )
|
||||
|
||||
# common compile options
|
||||
add_definitions( -DVERSION="${GRIVE_VERSION}" )
|
||||
add_definitions( -D_FILE_OFFSET_BITS=64 )
|
||||
|
|
|
@ -27,10 +27,11 @@ if ( BFD_FOUND )
|
|||
|
||||
endif ( BFD_FOUND )
|
||||
|
||||
# Not found on my system or in any standard repos.
|
||||
#if ( IBERTY_FOUND )
|
||||
# set( OPT_LIBS ${OPT_LIBS} ${IBERTY_LIBRARY} )
|
||||
#endif ( IBERTY_FOUND )
|
||||
if ( IBERTY_FOUND )
|
||||
set( OPT_LIBS ${OPT_LIBS} ${IBERTY_LIBRARY} )
|
||||
else ( IBERTY_FOUND )
|
||||
set( IBERTY_LIBRARY "" )
|
||||
endif ( IBERTY_FOUND )
|
||||
|
||||
if ( ZLIB_FOUND )
|
||||
set( OPT_LIBS ${OPT_LIBS} ${ZLIB_LIBRARIES} )
|
||||
|
@ -82,7 +83,7 @@ target_link_libraries( grive
|
|||
${LIBGCRYPT_LIBRARIES}
|
||||
${GDBM_LIBRARIES}
|
||||
${Boost_LIBRARIES}
|
||||
#${IBERTY_LIBRARY}
|
||||
${IBERTY_LIBRARY}
|
||||
${EXPAT_LIBRARY}
|
||||
${OPT_LIBS}
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue