Allow to extra modules by relative path (#13199)

This commit is contained in:
Ilya Lavrenov 2022-09-26 07:47:59 +04:00 committed by GitHub
parent 2bc32a172b
commit d82cdc39e4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -97,6 +97,7 @@ function(register_extra_modules)
# detect where IE_EXTRA_MODULES contains folders with CMakeLists.txt
# other folders are supposed to have sub-folders with CMakeLists.txt
foreach(module_path IN LISTS IE_EXTRA_MODULES)
get_filename_component(module_path "${module_path}" ABSOLUTE)
if(EXISTS "${module_path}/CMakeLists.txt")
list(APPEND extra_modules "${module_path}")
elseif(module_path)