ImportMultiArch.cmake 434 B

12345678910111213
  1. add_library(A OBJECT IMPORTED)
  2. # We don't actually build this example so just configure dummy
  3. # object files to test. They do not have to exist.
  4. set_target_properties(A PROPERTIES
  5. IMPORTED_OBJECTS "${CMAKE_CURRENT_BINARY_DIR}/$(CURRENT_ARCH)/does_not_exist.o"
  6. )
  7. add_library(B SHARED $<TARGET_OBJECTS:A> b.c)
  8. # We use this to find the relevant lines of the project.pbx file
  9. target_link_options(B PRIVATE --findconfig-$<CONFIG>)