summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDemitri Swan <demitriswan@gmail.com>2019-11-22 09:47:07 -0800
committerGitHub <noreply@github.com>2019-11-22 09:47:07 -0800
commit5c1c2b11900e2bd9710f2fd5cd5f6cec139fadb9 (patch)
tree77cd7c4a861685b6db7a9435aa8dca6496393a11
parent2f70597441861c2a8f3cc55c0be9fed7d6167a23 (diff)
parent9ac646c2d3ef47705cfaed11abcc2d968e9b0e4d (diff)
Merge pull request #10 from prksu/master
Fix build error: /code/README.md not found
-rw-r--r--prom/CMakeLists.txt2
-rw-r--r--promhttp/CMakeLists.txt2
2 files changed, 2 insertions, 2 deletions
diff --git a/prom/CMakeLists.txt b/prom/CMakeLists.txt
index e82beb9..dc0c494 100644
--- a/prom/CMakeLists.txt
+++ b/prom/CMakeLists.txt
@@ -129,7 +129,7 @@ set(CPACK_PACKAGE_VENDOR DigitalOcean)
set(CPACK_PACKAGE_VERSION_MAJOR ${MajorVersion})
set(CPACK_PACKAGE_VERSION_MINOR ${MinorVersion})
set(CPACK_PACKAGE_VERSION_PATCH ${PatchVersion})
-set(CPACK_PACKAGE_DESCRIPTION_FILE /code/README.md)
+set(CPACK_PACKAGE_DESCRIPTION_FILE ${CMAKE_CURRENT_SOURCE_DIR}/../README.md)
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "A prometheus client library")
set(CPACK_PACKAGE_HOMEPAGE_URL https://github.internal.digitalocean.com/timeseries/prometheus-client-c)
diff --git a/promhttp/CMakeLists.txt b/promhttp/CMakeLists.txt
index acbd767..e0451d0 100644
--- a/promhttp/CMakeLists.txt
+++ b/promhttp/CMakeLists.txt
@@ -65,7 +65,7 @@ set(CPACK_PACKAGE_VENDOR DigitalOcean)
set(CPACK_PACKAGE_VERSION_MAJOR ${MajorVersion})
set(CPACK_PACKAGE_VERSION_MINOR ${MinorVersion})
set(CPACK_PACKAGE_VERSION_PATCH ${PatchVersion})
-set(CPACK_PACKAGE_DESCRIPTION_FILE /code/README.md)
+set(CPACK_PACKAGE_DESCRIPTION_FILE ${CMAKE_CURRENT_SOURCE_DIR}/../README.md)
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "A library providing a lightweight HTTP Server for Prometheus metric scraping")
set(CPACK_PACKAGE_HOMEPAGE_URL https://github.internal.digitalocean.com/timeseries/prometheus-client-c)
set(CPACK_DEBIAN_PACKAGE_DEPENDS "libprom-dev (= ${Version})")