Fixing libdash dependencies and installing viper as executable 36/6236/2
authorMauro Sardara <[email protected]>
Tue, 18 Apr 2017 16:19:09 +0000 (18:19 +0200)
committerMauro Sardara <[email protected]>
Tue, 18 Apr 2017 16:22:55 +0000 (16:22 +0000)
Change-Id: I4ac7aebcc8b60abcc6e0cc4afc49e971d3c4a3da
Signed-off-by: Mauro Sardara <[email protected]>
CMakeLists.txt
libdash/CMakeLists.txt

index d92f79c..ea0db18 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (c) 2017 Cisco and/or its affiliates.
+ls -la# Copyright (c) 2017 Cisco and/or its affiliates.
 # Licensed under the Apache License, Version 2.0 (the "License");
 # you may not use this file except in compliance with the License.
 # You may obtain a copy of the License at:
@@ -29,7 +29,7 @@ add_custom_target(viper ALL
                   COMMAND cp ${CMAKE_CURRENT_BINARY_DIR}/qmake_build/viper_ ./viper
                   DEPENDS ${CMAKE_CURRENT_BINARY_DIR}//qmake_build/viper_)
 
-install(FILES ${CMAKE_CURRENT_BINARY_DIR}/viper DESTINATION ${CMAKE_INSTALL_PREFIX}/bin)
+install(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/viper DESTINATION ${CMAKE_INSTALL_PREFIX}/bin)
 
 # Generate DEB / RPM packages
 
index 06f4d35..129b726 100644 (file)
@@ -1,4 +1,4 @@
-cmake_minimum_required(VERSION 3.5)
+cmake_minimum_required(VERSION 3.2)
 project(libdash)
 
 set(CMAKE_CXX_FLAGS "-std=c++0x -g -DLOG_BUILD")
@@ -199,7 +199,7 @@ if(DEB_PACKAGE)
     SET(TYPE "DEBIAN")
     SET(GENERATOR "DEB")
     SET(CPACK_PACKAGE_FILE_NAME "${PACKAGE_NAME}_${PACKAGE_VERSION}_${ARCHITECTURE}")
-    SET(CPACK_${TYPE}_PACKAGE_REQUIRES "zlib1g, git-core, libxml2, libcurl4-openssl")
+    SET(CPACK_${TYPE}_PACKAGE_REQUIRES "zlib1g, git-core, libxml2, libcurl4-openssl-dev")
 elseif(RPM_PACKAGE)
     SET(TYPE "RPM")
     SET(GENERATOR "RPM")