https://github.com/Kitware/CMake
Raw File
Tip revision: fed67fa40d7b6e34ee7c8565694bd54af61aed73 authored by Brad King on 12 November 2021, 14:15:07 UTC
CMake 3.22.0-rc3
Tip revision: fed67fa
check_object_files.cmake

if (NOT TARGET_OBJECTS)
  message(SEND_ERROR "Object not passed as -DTARGET_OBJECTS")
endif()

foreach(objlib_file IN LISTS objects)
  message(STATUS "objlib_file: =${objlib_file}=")

  set(file_exists False)
  if (EXISTS "${objlib_file}")
    set(file_exists True)
  endif()

  if (NOT file_exists)
    message(SEND_ERROR "File \"${objlib_file}\" does not exist!${tried}")
  endif()
endforeach()
back to top