summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/XcodeProject/LinkBinariesBuildPhase_BUILT_ONLY-check.cmake
blob: 2b7edf5a052ec790f636ef2e250e72a15b4dadf1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
include(${RunCMake_TEST_SOURCE_DIR}/LinkBinariesBuildPhase_Funcs.cmake)
include(${RunCMake_TEST_BINARY_DIR}/foundLibs.cmake)

# obj2    --> Embeds func3.o in the link flags, but obj2 is part of the path
# ${libz} --> This is for imported2

foreach(mainTarget IN ITEMS app1 shared1 module1 sharedFramework1)
  checkFlags(OTHER_LDFLAGS ${mainTarget}
    "obj2;${libz};${libresolv}"
    "static2;shared2;staticFramework2;sharedFramework2"
  )
endforeach()

foreach(mainTarget IN ITEMS static1 staticFramework1)
  checkFlags(OTHER_LIBTOOLFLAGS ${mainTarget}
    "obj2"
    "static2;shared2;staticFramework2;sharedFramework2;${libz};${libresolv}"
  )
endforeach()