Skip to content

Commit

Permalink
link libuuid on linux
Browse files Browse the repository at this point in the history
  • Loading branch information
KazuOfficial committed Jun 7, 2024
1 parent db8bd5a commit bef55d1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
5 changes: 0 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,6 @@ jobs:
with:
submodules: recursive

- name: Install packages
run: |
sudo apt-get update
sudo apt-get install -y uuid-dev
- name: Configure CMake
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}

Expand Down
4 changes: 4 additions & 0 deletions src/core/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,7 @@ add_library(BetacraftLauncherCore ${BetacraftLauncherCoreSources})
add_subdirectory(tests)

target_include_directories(BetacraftLauncherCore PRIVATE ${CMAKE_SOURCE_DIR}/externals/nlohmann)

if(UNIX AND NOT APPLE)
target_link_libraries(BetacraftLauncherCore PRIVATE uuid)
endif()

0 comments on commit bef55d1

Please sign in to comment.