summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/XcodeProject/LinkBinariesBuildPhase_KNOWN_LOCATION-check.cmake
blob: 1044f7889e8827e98025312e9a06b75680c554fe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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 app2 shared1 shared3 module1 sharedFramework1)
  checkFlags(OTHER_LDFLAGS ${mainTarget}
    "obj2"
    "static2;shared2;staticFramework2;sharedFramework2;${libz};${libresolv};CoreFoundation;sharedFrameworkExt;staticFrameworkExt"
  )
endforeach()

foreach(mainTarget IN ITEMS app3 shared4)
  checkFlags(OTHER_LDFLAGS ${mainTarget}
    "obj2;shared2;sharedFramework2;sharedFrameworkExt"
    "static2;staticFramework2;${libz};${libresolv};CoreFoundation;staticFrameworkExt"
  )
endforeach()

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