Uploaded image for project: 'Qpid Proton'
  1. Qpid Proton
  2. PROTON-1597

Warnings when executing cmake in the examples/c directory

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • proton-c-0.18.0
    • proton-c-0.18.1
    • proton-c
    • None

    Description

      docker run -it fedora:latest bash

      dnf -y update
      dnf -y install make gcc gcc-c++ cmake git valgrind swig pkgconfig doxygen libuuid-devel openssl-devel python-devel python3 python3-devel ruby-devel perl-devel epydoc python cyrus-sasl-devel cyrus-sasl-lib cyrus-sasl-gssapi cyrus-sasl-plain cyrus-sasl-md5 rubygem-rspec rubygem-simplecov rubygem-minitest rubygem-test-unit python2-tox redhat-rpm-config libuv-devel libuv python-pip

      git clone ...qpid-proton.git proton
      cd proton
      cmake .
      make
      make install

      cd /usr/local/share/proton-0.18.0/examples
      cd c
      cmake .

      RESULTS IN:
      ...
      CMake Warning (dev) in CMakeLists.txt:
      No cmake_minimum_required command is present. A line of code such as

      cmake_minimum_required(VERSION 3.9)

      should be added at the top of the file. The version specified may be lower
      if you wish to support older CMake versions for this project. For more
      information run "cmake --help-policy CMP0000".
      This warning is for project developers. Use -Wno-dev to suppress it.

      – Configuring done
      CMake Warning (dev) at CMakeLists.txt:41 (add_executable):
      Policy CMP0003 should be set before this line. Add code such as

      if(COMMAND cmake_policy)
      cmake_policy(SET CMP0003 NEW)
      endif(COMMAND cmake_policy)

      as early as possible but after the most recent call to
      cmake_minimum_required or cmake_policy(VERSION). This warning appears
      because target "c-send" links to some libraries for which the linker must
      search:

      -lpthread

      and other libraries with known full path:

      /usr/local/lib64/libqpid-proton-proactor.so

      CMake is adding directories in the second list to the linker search path in
      case they are needed to find libraries from the first list (for backwards
      compatibility with CMake 2.4). Set policy CMP0003 to OLD or NEW to enable
      or disable this behavior explicitly. Run "cmake --help-policy CMP0003" for
      more information.
      This warning is for project developers. Use -Wno-dev to suppress it.

      – Generating done
      – Build files have been written to: /usr/local/share/proton-0.18.0/examples/c

      Attachments

        Activity

          People

            astitcher Andrew Stitcher
            iboverma Irina Boverman
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: