Skip to content

Commit

Permalink
Fix mariusbancila#77 for Debian family.
Browse files Browse the repository at this point in the history
  • Loading branch information
zzxzzk115 committed Apr 20, 2023
1 parent 3afe719 commit cb4bba7
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 36 deletions.
7 changes: 2 additions & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,8 @@ if (UUID_SYSTEM_GENERATOR)
find_library(CFLIB CoreFoundation REQUIRED)
target_link_libraries(${PROJECT_NAME} INTERFACE ${CFLIB})
else ()
find_package(Libuuid REQUIRED)
if (Libuuid_FOUND)
target_include_directories(${PROJECT_NAME} INTERFACE ${Libuuid_INCLUDE_DIRS})
target_link_libraries(${PROJECT_NAME} INTERFACE ${Libuuid_LIBRARIES})
endif ()
target_include_directories(${PROJECT_NAME} INTERFACE /usr/include/uuid)
target_link_libraries(${PROJECT_NAME} INTERFACE uuid)
endif ()
endif ()

Expand Down
14 changes: 0 additions & 14 deletions cmake/Config.cmake.in

This file was deleted.

17 changes: 0 additions & 17 deletions cmake/FindLibuuid.cmake

This file was deleted.

11 changes: 11 additions & 0 deletions how_to_build.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,14 @@ cd build
```
cmake -G Xcode ..
```

## Linux

Debian family:

Install the dependency package (uuid-dev):

```bash
sudo apt-get install uuid-dev
```

0 comments on commit cb4bba7

Please sign in to comment.