Tests/RunCMake/ObjectLibrary/check_object_files.cmake
raw| 1 | |
| 2 | if (NOT TARGET_OBJECTS) |
| 3 | message(SEND_ERROR "Object not passed as -DTARGET_OBJECTS") |
| 4 | endif() |
| 5 | |
| 6 | foreach(objlib_file IN LISTS objects) |
| 7 | message(STATUS "objlib_file: =${objlib_file}=") |
| 8 | |
| 9 | set(file_exists False) |
| 10 | if (EXISTS "${objlib_file}") |
| 11 | set(file_exists True) |
| 12 | endif() |
| 13 | |
| 14 | if (NOT file_exists) |
| 15 | message(SEND_ERROR "File \"${objlib_file}\" does not exist!${tried}") |
| 16 | endif() |
| 17 | endforeach() |