You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kudu.apache.org by al...@apache.org on 2020/03/04 01:06:08 UTC

[kudu] branch master updated: [cmake] add project(Kudu) to avoid warning

This is an automated email from the ASF dual-hosted git repository.

alexey pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/kudu.git


The following commit(s) were added to refs/heads/master by this push:
     new 2a3fe54  [cmake] add project(Kudu) to avoid warning
2a3fe54 is described below

commit 2a3fe540f3a98bf715ef82ab189759c61a419a2b
Author: Alexey Serbin <al...@apache.org>
AuthorDate: Tue Mar 3 15:29:36 2020 -0800

    [cmake] add project(Kudu) to avoid warning
    
    Once switching to cmake 3.16.4, the following warning started to appear
    (at least when building on Ubuntu 18.04):
    
      No project() command is present.  The top-level CMakeLists.txt file must
      contain a literal, direct call to the project() command.  Add a line of
      code such as
    
        project(ProjectName)
    
      near the top of the file, but after cmake_minimum_required().
    
      CMake is pretending there is a "project(Project)" command on the first
      line.
    
    This patch adds project() command, exactly as instructed.
    
    Change-Id: Ie8ac913520644690561af073609d58ac320faa51
    Reviewed-on: http://gerrit.cloudera.org:8080/15354
    Tested-by: Kudu Jenkins
    Reviewed-by: Bankim Bhavsar <ba...@cloudera.com>
    Reviewed-by: Andrew Wong <aw...@cloudera.com>
---
 CMakeLists.txt | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 4cd8575..21fb38f 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -22,6 +22,8 @@
 # 1. https://gitlab.kitware.com/cmake/cmake/issues/17938
 cmake_minimum_required(VERSION 3.11.2)
 
+project(Kudu)
+
 # Prevent builds from the top-level source directory. This ensures that build
 # output is well isolated from the source tree.
 #