Skip to content

Commit

Permalink
Require minimum versions on CMakeLists template (#224)
Browse files Browse the repository at this point in the history
* Require minimum versions on CMakeLists template.

The code generated is now designed for Fast CDR >= 2.0 and Fast DDS >= 2.12,
so the generated CMakeLists.txt should require those versions.

Signed-off-by: Miguel Company <[email protected]>

* Also increase cmake minimum version

Signed-off-by: Miguel Company <[email protected]>

---------

Signed-off-by: Miguel Company <[email protected]>
  • Loading branch information
MiguelCompany authored Sep 13, 2023
1 parent 6a2c67d commit bbf3cb1
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,16 @@ group CMakeLists;

cmakelists(solution, test) ::= <<

cmake_minimum_required(VERSION 3.16.3)
cmake_minimum_required(VERSION 3.22)

project("generated_code")

set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_EXTENSIONS OFF)

# Find requirements
find_package(fastcdr REQUIRED)
find_package(fastrtps REQUIRED)
find_package(fastcdr 2 REQUIRED)
find_package(fastrtps 2.12 REQUIRED)

$solution.projects : { project | $pub_sub_execs(project=project, libraries=solution.libraries, test=test)$}; separator="\n"$

Expand Down

0 comments on commit bbf3cb1

Please sign in to comment.