diff --git a/cmake/extra_modules.cmake b/cmake/extra_modules.cmake index 7530587bc7d..a91f16bf501 100644 --- a/cmake/extra_modules.cmake +++ b/cmake/extra_modules.cmake @@ -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)