Skip to content

Commit

Permalink
Set project() version correctly to avoid CMake warning
Browse files Browse the repository at this point in the history
(Related to CMake warning: "policy CMP0048 is not set: project() command manages VERSION variables")
  • Loading branch information
Roboticist-2 authored and PetteriAimonen committed Jul 3, 2024
1 parent 7c6c581 commit 0c3bb68
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
cmake_minimum_required(VERSION 3.14.0)

project(nanopb C)
project(nanopb VERSION 0.4.9 LANGUAGES C)

set(nanopb_VERSION_STRING nanopb-0.4.9-dev)
set(nanopb_VERSION_STRING ${PROJECT_NAME}-${${PROJECT_NAME}_VERSION}-dev)
set(nanopb_SOVERSION 0)

string(REPLACE "nanopb-" "" nanopb_VERSION ${nanopb_VERSION_STRING})
Expand Down

0 comments on commit 0c3bb68

Please sign in to comment.