Skip to content

Commit

Permalink
Missing ASIO in dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
Anivice committed Jan 16, 2025
1 parent 3f383dc commit 9e37448
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/CMake_GitHub_Action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
software-properties-common \
wget \
apt-transport-https \
gnupg cmake libsfml-dev
gnupg cmake libsfml-dev libasio-dev
########################################################################
# BUILD & TEST with Memory/Address/Undefined Sanitizers
Expand Down
15 changes: 14 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,19 @@ endif ()

# Console Executable:
find_package(nlohmann_json REQUIRED)
## Find the Asio headers
find_path(ASIO_INCLUDE_DIR
NAMES asio.hpp
PATHS /usr/include /usr/local/include
DOC "Path to the standalone Asio headers (asio.hpp)"
)
if(NOT ASIO_INCLUDE_DIR)
message(FATAL_ERROR "Could not find <asio.hpp>.")
else ()
message(STATUS "Found <asio.hpp> in ${ASIO_INCLUDE_DIR}")
endif()

add_compile_definitions(ASIO_STANDALONE)

add_executable(sysdarft-system
src/SysdarftConsole/SysdarftMain.cpp
Expand All @@ -340,5 +353,5 @@ add_executable(sysdarft-system
src/SysdarftConsole/ShowContext.cpp
src/SysdarftConsole/DebugAction.cpp
)
target_include_directories(sysdarft-system PUBLIC src/include src/include/crow)
target_include_directories(sysdarft-system PUBLIC ${ASIO_INCLUDE_DIR} src/include src/include/crow)
target_link_libraries(sysdarft-system PUBLIC Sysdarft nlohmann_json::nlohmann_json)

0 comments on commit 9e37448

Please sign in to comment.