@@ -30,6 +30,8 @@ In order to compile a C++ library, use the following macros:
30301 . To compile tests for the library: ` compile_test(${<test path>}) `
31311 . To install the package following eprosima defaults ` eprosima_packaging() `
3232
33+ ---
34+
3335## Module Requirements
3436
3537In order create a package (called Module from now on) using this library,
@@ -49,8 +51,9 @@ The version will be loaded from this file if it is not set in `project_settings.
4951
5052Every module requires to have a ` LICENSE ` file in order to install it with the result of the module.
5153
54+ ---
5255
53- #### Project using cmake_utils variables
56+ ## Project configuration using cmake_utils variables
5457
5558These are the variables that could/must be set in the ` project_settings.cmake ` file.
5659Those variables which default is ` x ` must be set, and those with ` - ` are not required.
@@ -87,7 +90,21 @@ Those variables which default is `x` must be set, and those with `-` are not req
8790| ------------------------------| -------------------------------------------------------------------------| ----------------------------------------------------------------------------------------------------|
8891| MODULE_CPP_VERSION | C++17 | C++ version |
8992
90- #### Project using cmake_utils CMake options
93+ ### Minimum Package Version
94+
95+ Setting the CMake variable ` <library>_MINIMUM_VERSION ` will force the ` find_package ` call to look for library
96+ ` <library> ` with minimum version ` ${<library>_MINIMUM_VERSION} ` .
97+
98+ e.g.
99+
100+ ``` cmake
101+ set(MODULE_FIND_PACKAGES fastrtps)
102+ set(fastrtps_MINIMUM_VERSION "2.8") # This will force to use a version of fastrtps higher or equal 2.8
103+ ```
104+
105+ ---
106+
107+ ## Project using cmake_utils CMake options set
91108
92109There are default CMake options used within cmake_utils package that will always be set.
93110In case the user sets these variables, they will have that value. Otherwise,
0 commit comments