summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/TargetObjects/XcodeVariableNoGenexExpansion.cmake
blob: 83d721000a8d6f1c4d1fc906ca3c4dd3776c7497 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
add_library(A OBJECT IMPORTED)

# We don't actually build this example so just configure a dummy
# object file to test.  It does not have to exist.
set_target_properties(A PROPERTIES
  IMPORTED_OBJECTS "${CMAKE_CURRENT_BINARY_DIR}/$(CURRENT_ARCH)/does_not_exist.o"
)

file(GENERATE
  OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/objects.txt
  CONTENT "$<TARGET_OBJECTS:A>"
)