Use Variables for Boost libraries instead of explicit names

Use the vairables filled by FindBoost instead explicit names in the cmake files
This commit is contained in:
Mohammad Al-Turany 2016-03-29 15:31:29 +02:00
parent 732373faa2
commit 9a340fb7f6
2 changed files with 15 additions and 15 deletions

View File

@ -116,16 +116,15 @@ Install(FILES ${FAIRMQHEADERS} DESTINATION include)
Set(DEPENDENCIES
${DEPENDENCIES}
${ZMQ_LIBRARY_SHARED}
boost_thread
${Boost_THREAD_LIBRARY}
fairmq_logger
boost_timer
boost_system
boost_filesystem
boost_program_options
boost_random
boost_chrono
boost_exception
boost_regex
${Boost_TIMER_LIBRARY}
${Boost_SYSTEM_LIBRARY}
${Boost_FILESYSTEM_LIBRARY}
${Boost_PROGRAM_OPTIONS_LIBRARY}
${Boost_RANDOM_LIBRARY}
${Boost_CHRONO_LIBRARY}
${Boost_REGEX_LIBRARY}
)
If(NANOMSG_FOUND)

View File

@ -26,12 +26,13 @@ set(SRCS logger.cxx)
set(LIBRARY_NAME fairmq_logger)
set(DEPENDENCIES
boost_log
boost_log_setup
boost_thread
boost_date_time
boost_filesystem
boost_system
${Boost_LOG_LIBRARY}
${Boost_LOG_SETUP_LIBRARY}
${Boost_THREAD_LIBRARY}
${Boost_THREAD_LIBRARY}
${Boost_DATE_TIME_LIBRARY}
${Boost_FILESYSTEM_LIBRARY}
${Boost_SYSTEM_LIBRARY}
pthread
)