Skip to content

Commit

Permalink
Use find_packages function to load module dependencies versions (#95)
Browse files Browse the repository at this point in the history
Signed-off-by: Raul Sanchez-Mateos <[email protected]>
  • Loading branch information
rsanchez15 authored Jan 26, 2024
1 parent c92ca74 commit 20b5978
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cmake_utils/cmake/project/configure_project.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,11 @@ macro(configure_project)
# Set variables for project
load_project_settings()

# Find module dependencies packages
foreach(MODULE_DEPENDENCY ${MODULE_DEPENDENCIES})
find_package(${MODULE_DEPENDENCY} QUIET)
endforeach()

# Read version if it is not already set
if( NOT DEFINED MODULE_VERSION_MAJOR OR
NOT DEFINED MODULE_VERSION_MINOR OR
Expand Down

0 comments on commit 20b5978

Please sign in to comment.