Skip to content

example build cmake warnings #93

@cevich

Description

@cevich

Under Fedora 21 beta, using Fedora 20 toolchain (bugzilla 1134394), CMake 2.8.12 gives the following warnings:

$ mkdir build && cd build && cmake ..
...cut...
-- Configuring done
CMake Warning (dev) at cmake/Platform/Arduino.cmake:983 (add_library):
  Policy CMP0038 is not set: Targets may not link directly to themselves.
  Run "cmake --help-policy CMP0038" for policy details.  Use the cmake_policy
  command to set the policy and suppress this warning.

  Target "uno_example" links to itself.
Call Stack (most recent call first):
  cmake/Platform/Arduino.cmake:1040 (setup_arduino_library)
  cmake/Platform/Arduino.cmake:391 (setup_arduino_libraries)
  example/CMakeLists.txt:73 (generate_arduino_library)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) in example/CMakeLists.txt:
  Policy CMP0022 is not set: INTERFACE_LINK_LIBRARIES defines the link
  interface.  Run "cmake --help-policy CMP0022" for policy details.  Use the
  cmake_policy command to set the policy and suppress this warning.

  Target "uno_example" has an INTERFACE_LINK_LIBRARIES property.  This should
  be preferred as the source of the link interface for this library but
  because CMP0022 is not set CMake is ignoring the property and using the
  link implementation as the link interface instead.

  INTERFACE_LINK_LIBRARIES:

    uno_CORE;uno_example

  Link implementation:

    uno_CORE

This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at cmake/Platform/Arduino.cmake:983 (add_library):
  Policy CMP0038 is not set: Targets may not link directly to themselves.
  Run "cmake --help-policy CMP0038" for policy details.  Use the cmake_policy
  command to set the policy and suppress this warning.

  Target "uno_example" links to itself.
Call Stack (most recent call first):
  cmake/Platform/Arduino.cmake:1040 (setup_arduino_library)
  cmake/Platform/Arduino.cmake:391 (setup_arduino_libraries)
  example/CMakeLists.txt:73 (generate_arduino_library)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at cmake/Platform/Arduino.cmake:983 (add_library):
  Policy CMP0038 is not set: Targets may not link directly to themselves.
  Run "cmake --help-policy CMP0038" for policy details.  Use the cmake_policy
  command to set the policy and suppress this warning.

  Target "diecimila_Wire" links to itself.
Call Stack (most recent call first):
  cmake/Platform/Arduino.cmake:1040 (setup_arduino_library)
  cmake/Platform/Arduino.cmake:626 (setup_arduino_libraries)
  example/CMakeLists.txt:12 (generate_arduino_example)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at cmake/Platform/Arduino.cmake:983 (add_library):
  Policy CMP0038 is not set: Targets may not link directly to themselves.
  Run "cmake --help-policy CMP0038" for policy details.  Use the cmake_policy
  command to set the policy and suppress this warning.

  Target "uno_example" links to itself.
Call Stack (most recent call first):
  cmake/Platform/Arduino.cmake:1040 (setup_arduino_library)
  cmake/Platform/Arduino.cmake:391 (setup_arduino_libraries)
  example/CMakeLists.txt:73 (generate_arduino_library)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at cmake/Platform/Arduino.cmake:983 (add_library):
  Policy CMP0038 is not set: Targets may not link directly to themselves.
  Run "cmake --help-policy CMP0038" for policy details.  Use the cmake_policy
  command to set the policy and suppress this warning.

  Target "diecimila_Wire" links to itself.
Call Stack (most recent call first):
  cmake/Platform/Arduino.cmake:1040 (setup_arduino_library)
  cmake/Platform/Arduino.cmake:626 (setup_arduino_libraries)
  example/CMakeLists.txt:12 (generate_arduino_example)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) in example/CMakeLists.txt:
  Policy CMP0022 is not set: INTERFACE_LINK_LIBRARIES defines the link
  interface.  Run "cmake --help-policy CMP0022" for policy details.  Use the
  cmake_policy command to set the policy and suppress this warning.

  Target "diecimila_Wire" has an INTERFACE_LINK_LIBRARIES property.  This
  should be preferred as the source of the link interface for this library
  but because CMP0022 is not set CMake is ignoring the property and using the
  link implementation as the link interface instead.

  INTERFACE_LINK_LIBRARIES:

    diecimila_CORE;diecimila_Wire

  Link implementation:

    diecimila_CORE

This warning is for project developers.  Use -Wno-dev to suppress it.

-- Generating done
-- Build files have been written to: /tmp/arduino-cmake/build

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions