Skip to content

Commit

Permalink
tgbot-cpp: Slience a pragma warning seen with boost placeholders
Browse files Browse the repository at this point in the history
  • Loading branch information
Royna2544 committed Feb 27, 2024
1 parent 542d759 commit ac08ad7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -67,15 +67,16 @@ endif()
## boost
set(Boost_USE_MULTITHREADED ON)
if (ENABLE_TESTS)
find_package(Boost 1.65.1 COMPONENTS system unit_test_framework REQUIRED)
find_package(Boost 1.65.1 COMPONENTS system filesystem unit_test_framework REQUIRED)
else()
find_package(Boost 1.65.1 COMPONENTS system REQUIRED)
find_package(Boost 1.65.1 COMPONENTS system filesystem REQUIRED)
endif()
include_directories(${Boost_INCLUDE_DIR})
link_directories(${Boost_LIBRARY_DIR_RELEASE})
if(NOT Boost_USE_STATIC_LIBS)
add_definitions(-DBOOST_ALL_DYN_LINK)
endif()
add_definitions(-DBOOST_BIND_GLOBAL_PLACEHOLDERS)

set(LIB_LIST
${CMAKE_THREAD_LIBS_INIT}
Expand Down

0 comments on commit ac08ad7

Please sign in to comment.