Skip to content

Commit

Permalink
Merge pull request #10 from jirihnidek/fix_copr_build
Browse files Browse the repository at this point in the history
Fixed warning and marked project as C project.
  • Loading branch information
jirihnidek authored Oct 24, 2023
2 parents b98a336 + dd4d837 commit cb2683c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
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

0 comments on commit cb2683c

Please sign in to comment.