Skip to content

Add project name and minimum version for cmake - #6

Open
voltagex wants to merge 1 commit into
JayFoxRox:masterfrom
voltagex-forks:cmake-1
Open

Add project name and minimum version for cmake#6
voltagex wants to merge 1 commit into
JayFoxRox:masterfrom
voltagex-forks:cmake-1

Conversation

@voltagex

Copy link
Copy Markdown

This gets rid of the following warnings/errors, at least with cmake 4.3.3 on Windows:

CMake Error in CMakeLists.txt:
  No cmake_minimum_required command is present.  A line of code such as

    cmake_minimum_required(VERSION 4.3)

  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".

I've chosen 4.0, you could probably set this much older if you want.

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.

So I set project(pba-tools)

@voltagex voltagex mentioned this pull request Jul 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant