check_object_files.cmake 398 B

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