История изменений
Исправление WatchCat, (текущая версия) :
tl;dr
Я делаю так:
set( Boost_USE_MULTITHREADED ON )
find_package(
Boost 1.60 REQUIRED
COMPONENTS
chrono
filesystem
regex
system
thread
program_options
random
)
link_directories(${Boost_LIBRARY_DIRS}) #<- совсем не обязательно
include_directories(${Boost_INCLUDE_DIRS})
target_link_libraries(
target
${Boost_SYSTEM_LIBRARY}
${Boost_FILESYSTEM_LIBRARY}
${Boost_REGEX_LIBRARY}
${Boost_THREAD_LIBRARY}
${Boost_CHRONO_LIBRARY}
...
)
Исправление WatchCat, :
tl;dr
Я делаю так:
set( Boost_USE_MULTITHREADED ON )
find_package(
Boost 1.60 REQUIRED
COMPONENTS
chrono
filesystem
regex
system
thread
program_options
random
)
link_directories(${Boost_LIBRARY_DIRS})
include_directories(${Boost_INCLUDE_DIRS})
target_link_libraries(
target
${Boost_SYSTEM_LIBRARY}
${Boost_FILESYSTEM_LIBRARY}
${Boost_REGEX_LIBRARY}
${Boost_THREAD_LIBRARY}
${Boost_CHRONO_LIBRARY}
...
)
Исходная версия WatchCat, :
tl;dr
Я делаю так:
set( Boost_USE_MULTITHREADED ON )
find_package(
Boost 1.60 REQUIRED
COMPONENTS
chrono
filesystem
regex
system
thread
program_options
random
)
target_include_directories(
target
${Boost_INCLUDE_DIRS}
...
)
target_link_libraries(
target
${Boost_SYSTEM_LIBRARY}
${Boost_FILESYSTEM_LIBRARY}
${Boost_REGEX_LIBRARY}
${Boost_THREAD_LIBRARY}
${Boost_CHRONO_LIBRARY}
...
)