Skip to content

Commit

Permalink
Link against correct libs, remove CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS
Browse files Browse the repository at this point in the history
  • Loading branch information
tuokri committed Feb 2, 2025
1 parent e875b15 commit 28bdd84
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
17 changes: 16 additions & 1 deletion build_commands_bot/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,23 @@ find_package(
REQUIRED
)

find_package(
glaze
CONFIG
REQUIRED
)

find_package(
Boost
CONFIG
REQUIRED
COMPONENTS
asio
cobalt
process
)

if (WIN32)
# set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR})
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR})
endif ()
Expand Down
5 changes: 5 additions & 0 deletions build_commands_bot/src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,12 @@ target_link_options(
target_link_libraries(
build_commands_bot
PRIVATE
Boost::asio
Boost::cobalt
Boost::process
Boost::system
dpp
glaze::glaze
spdlog::spdlog
)

Expand Down

0 comments on commit 28bdd84

Please sign in to comment.