aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/pull_request.yml10
-rw-r--r--CMakeLists.txt6
-rw-r--r--README.md4
3 files changed, 17 insertions, 3 deletions
diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml
index 4b6610c..4717bbe 100644
--- a/.github/workflows/pull_request.yml
+++ b/.github/workflows/pull_request.yml
@@ -17,3 +17,13 @@ jobs:
run: |
sudo apt-get -y install libjson-c-dev libcmocka-dev
make pre-push VERBOSE=1
+ centos-7:
+ runs-on: ubuntu-latest
+ container: centos:7
+ steps:
+ - uses: actions/checkout@v2
+ - name: pre-push
+ run: |
+ yum -y install make gcc-4.8.5 epel-release
+ yum -y install cmake json-c-devel libcmocka-devel openssl-devel
+ make pre-push VERBOSE=1
diff --git a/CMakeLists.txt b/CMakeLists.txt
index b13c326..4b1b0b0 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -29,7 +29,11 @@
#
cmake_minimum_required (VERSION 2.6)
-project(libvfio-user)
+if (CMAKE_MAJOR_VERSION LESS 3)
+ project(libvfio-user C)
+else()
+ project(libvfio-user LANGUAGES C)
+endif()
include(GNUInstallDirs)
find_package(PkgConfig REQUIRED)
diff --git a/README.md b/README.md
index a7aec02..00b695e 100644
--- a/README.md
+++ b/README.md
@@ -70,8 +70,8 @@ Building muser
Build requirements:
* `cmake` (v2 or above)
- * `libjson-c-dev` / `libjson-c-devel`
- * `libcmocka-dev` / `libcmocka-devel`
+ * `apt install libjson-c-dev libcmocka-dev libssl-dev` *or*
+ * `yum install json-c-devel libcmocka-devel openssl-devel`
To build: