Skip to content

Add project to cmake of example code  #116

Description

@TimmRuppert

Describe the bug

Running the cmake configuration give

CMake Warning (dev) in CMakeLists.txt:
  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 warning is for project developers.  Use -Wno-dev to suppress it.

Describe how to reproduce the bug

Freshly reconfigure your build using cmake

Describe the expected behavior

No warnings

Additional context

Simply adding project(OSMPExamples) should be sufficient.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

qualityQuality improvements.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions