Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed cmake warning, marked project as C project and fix rpm build #10

Merged
merged 2 commits into from
Oct 24, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,17 @@ jobs:
steps:
# Install git and other tools first to be able to use 'actions/checkout@v2' properly
- name: Install required packages
run: dnf install --nogpgcheck -y tito gcc gcc-c++ make cmake git-core
run: dnf install --nogpgcheck -y tito gcc make cmake git-core

# Clone repository and set everything for building of RPMs
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4

# This step is required so Tito can properly read git history
# See https://github.com/actions/checkout/issues/766
- name: Trust git repository path
run: |
git config --global --add safe.directory '*'

- name: Create build directory
run: rm -rf ./rpm_build; mkdir ./rpm_build
Expand Down
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Minimal version of CMake
cmake_minimum_required (VERSION 2.6)
cmake_minimum_required (VERSION 2.8...3.27)

# Build type
if (NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES)
Expand All @@ -11,7 +11,7 @@ if (NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES)
endif ()

# Define project name
project (Daemon)
project (Daemon C)

# The version number
set (${PROJECT_NAME}_VERSION_MAJOR 0)
Expand Down
Loading