You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
cmake/Tests/RunCMake/CXXModules/examples/cxx-modules-find-bmi-and-in...

23 lines
564 B

function (check_for_bmi prefix destination name)
set(found 0)
foreach (ext IN ITEMS gcm)
if (EXISTS "${prefix}/${destination}/${name}.${ext}")
set(found 1)
break ()
endif ()
endforeach ()
if (NOT found)
message(SEND_ERROR
"Failed to find the ${name} BMI")
endif ()
endfunction ()
function (check_for_interface prefix destination subdir name)
set(found 0)
if (NOT EXISTS "${prefix}/${destination}/${subdir}/${name}")
message(SEND_ERROR
"Failed to find the ${name} module interface")
endif ()
endfunction ()