summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosé Bollo <jose.bollo@iot.bzh>2017-03-13 14:13:43 +0100
committerJosé Bollo <jose.bollo@iot.bzh>2017-03-14 10:21:05 +0100
commitea587a2162338cc221ecdc7bbe56341d51a777c8 (patch)
tree453dbb73df6646c2ade60fb6c71fd2c61116fbfe
parent276d6124ee3dfc8802e9a0fb4fc7b1e2034dfb24 (diff)
switch to cmake 3.4.3 at least
Change-Id: Ib63bd000abaabd4966519b75356668d31aed58f9 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
-rw-r--r--src/CMakeLists.txt8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 5e321ea..b7c130a 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -16,7 +16,7 @@
# limitations under the License.
###########################################################################
-cmake_minimum_required(VERSION 2.8)
+cmake_minimum_required(VERSION 3.4.3)
###########################################################################
@@ -173,11 +173,7 @@ if(SYSTEMD_FOUND)
if(AFB_FOUND)
message(STATUS "Creation afm-main-binding for AFB-DAEMON")
###############################################################
- #pkg_get_variable(afb_binding_install_dir afb-daemon binding_install_dir)
- execute_process(
- COMMAND pkg-config --variable binding_install_dir afb-daemon
- OUTPUT_VARIABLE afb_binding_install_dir OUTPUT_STRIP_TRAILING_WHITESPACE
- )
+ pkg_get_variable(afb_binding_install_dir afb-daemon binding_install_dir)
###############################################################
add_library(afm-main-binding MODULE afm-main-binding.c)
target_compile_options(afm-main-binding PRIVATE ${AFB_CFLAGS})