diff options
author | Brad King <brad.king@kitware.com> | 2022-10-31 13:54:03 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2022-10-31 13:54:12 (GMT) |
commit | 35a231bf0fbf7930cce6893c2fa7e1242df5afdc (patch) | |
tree | 25afd3cbc6c9dc6c696adf5fa5e3d85d60a50338 /Tests | |
parent | 353f850f298693e4445207cc99d1bb8b7661f5cc (diff) | |
parent | e88509d0e87eaa6f41603bfd7b07b653527e88c0 (diff) | |
download | CMake-35a231bf0fbf7930cce6893c2fa7e1242df5afdc.zip CMake-35a231bf0fbf7930cce6893c2fa7e1242df5afdc.tar.gz CMake-35a231bf0fbf7930cce6893c2fa7e1242df5afdc.tar.bz2 |
Merge topic 'ewilde/swift-output-file-map-logic'
e88509d0e8 Swift: Omit output-file-map when used as a linker
Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: buildbot <buildbot@kitware.com>
Merge-request: !7835
Diffstat (limited to 'Tests')
-rw-r--r-- | Tests/SwiftMixLib/CMakeLists.txt | 3 | ||||
-rw-r--r-- | Tests/SwiftMixLib/main.c | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/Tests/SwiftMixLib/CMakeLists.txt b/Tests/SwiftMixLib/CMakeLists.txt index 40d3498..a52fc94 100644 --- a/Tests/SwiftMixLib/CMakeLists.txt +++ b/Tests/SwiftMixLib/CMakeLists.txt @@ -4,3 +4,6 @@ project(SwiftMixLib C CXX Swift) add_library(SwiftMixedLib lib.c lib.cpp lib.swift) add_executable(Swifty main.swift) target_link_libraries(Swifty PUBLIC SwiftMixedLib) + +add_executable(c_main main.c) +target_link_libraries(c_main PUBLIC SwiftMixedLib) diff --git a/Tests/SwiftMixLib/main.c b/Tests/SwiftMixLib/main.c new file mode 100644 index 0000000..6ecf984 --- /dev/null +++ b/Tests/SwiftMixLib/main.c @@ -0,0 +1,3 @@ +int main(int argc, char* argv[]) +{ +} |