Lockfree requires the atomic library in some archs, so include it in the supernova target
Gbp-Pq: Name system-lockfree.patch
if(SYSTEM_BOOST)
set(Boost_USE_MULTITHREADED ON)
- find_package( Boost 1.50.0 COMPONENTS thread system filesystem program_options regex test_exec_monitor )
+ find_package( Boost 1.50.0 COMPONENTS thread system filesystem program_options regex test_exec_monitor atomic)
endif()
if (Boost_FOUND)
${YAMLCPP_INCLUDE_DIR}
- ${CMAKE_SOURCE_DIR}/external_libraries/boost-lockfree
${CMAKE_SOURCE_DIR}/external_libraries/threadpool
${CMAKE_SOURCE_DIR}/external_libraries/TLSF-2.4.6/src
LangSource/Bison)
endif()
if (Boost_FOUND)
- target_link_libraries(libsclang ${Boost_THREAD_LIBRARY} ${Boost_SYSTEM_LIBRARY} ${Boost_REGEX_LIBRARY} ${Boost_FILESYSTEM_LIBRARY})
+ target_link_libraries(libsclang ${Boost_THREAD_LIBRARY} ${Boost_SYSTEM_LIBRARY} ${Boost_REGEX_LIBRARY} ${Boost_FILESYSTEM_LIBRARY} ${Boost_ATOMIC_LIBRARY})
endif()
if (SCLANG_SERVER)
endif()
include_directories(${CMAKE_SOURCE_DIR}/external_libraries
- ${CMAKE_SOURCE_DIR}/external_libraries/boost-lockfree
${CMAKE_SOURCE_DIR}/external_libraries/nova-simd
${CMAKE_SOURCE_DIR}/external_libraries/nova-tt
)
endif()
if(CMAKE_SYSTEM_NAME MATCHES "Linux")
- target_link_libraries(libscsynth rt)
+ target_link_libraries(libscsynth rt ${Boost_THREAD_LIBRARY})
endif()
file(GLOB_RECURSE all_headers ../../*hpp)
target_link_libraries(libsupernova oscpack tlsf ${PTHREADS_LIBRARIES})
if (Boost_FOUND)
- target_link_libraries(libsupernova ${Boost_SYSTEM_LIBRARY} ${Boost_FILESYSTEM_LIBRARY} ${Boost_PROGRAM_OPTIONS_LIBRARY})
+ target_link_libraries(libsupernova ${Boost_SYSTEM_LIBRARY} ${Boost_FILESYSTEM_LIBRARY} ${Boost_PROGRAM_OPTIONS_LIBRARY} ${Boost_ATOMIC_LIBRARY})
else()
target_link_libraries(libsupernova boost_system boost_filesystem boost_program_options)
endif()
${CMAKE_SOURCE_DIR}/server/supernova
${CMAKE_SOURCE_DIR}/external_libraries/boost
${CMAKE_SOURCE_DIR}/external_libraries/boost_endian
- ${CMAKE_SOURCE_DIR}/external_libraries/boost-lockfree
${CMAKE_SOURCE_DIR}/external_libraries/oscpack
${CMAKE_SOURCE_DIR}/external_libraries/
${CMAKE_SOURCE_DIR}/external_libraries/nova-tt