Changeset 285 in pacpusframework for trunk/cmake/PacpusDependencies.cmake


Ignore:
Timestamp:
Mar 25, 2014, 11:26:13 AM (11 years ago)
Author:
Marek Kurdej
Message:

Added: dependencies from Boost.Thread

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/cmake/PacpusDependencies.cmake

    r267 r285  
    106106set(Boost_USE_STATIC_RUNTIME    OFF)
    107107list(APPEND PACPUS_DEFINITIONS " -DBOOST_ALL_DYN_LINK ")
     108if(CMAKE_COMPILER_IS_GNUC)
     109    list(APPEND PACPUS_DEFINITIONS " -lpthread ")
     110endif()
    108111find_package(Boost 1.54.0
    109112    COMPONENTS
     113        chrono # thread
     114        date_time # thread
    110115        program_options #1.32.0
     116        system # log, thread needed on Linux
     117        thread
    111118)
    112119if(Boost_FOUND)
     
    121128            #filesystem
    122129            log # 1.54.0
    123             log_setup
    124             system # needed on Linux
     130            log_setup # log
    125131    )
    126132    include_directories(${Boost_INCLUDE_DIRS})
Note: See TracChangeset for help on using the changeset viewer.