summaryrefslogtreecommitdiffstats
path: root/Tests/SwiftMix/CMakeLists.txt
diff options
context:
space:
mode:
authorGregor Jasny <gjasny@googlemail.com>2019-05-01 11:24:34 (GMT)
committerGregor Jasny <gjasny@googlemail.com>2019-05-01 11:30:14 (GMT)
commitb7b66919a3952a3a2c31d659fcbe3bebf7e5887e (patch)
treebcf0a5091190eeb9e24518a10bdb2129cdee5282 /Tests/SwiftMix/CMakeLists.txt
parentcab5471a7ba0f45273f293104f5d00d1af8284ac (diff)
downloadCMake-b7b66919a3952a3a2c31d659fcbe3bebf7e5887e.zip
CMake-b7b66919a3952a3a2c31d659fcbe3bebf7e5887e.tar.gz
CMake-b7b66919a3952a3a2c31d659fcbe3bebf7e5887e.tar.bz2
SwiftMix: properly export SwiftMain method
Diffstat (limited to 'Tests/SwiftMix/CMakeLists.txt')
-rw-r--r--Tests/SwiftMix/CMakeLists.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/Tests/SwiftMix/CMakeLists.txt b/Tests/SwiftMix/CMakeLists.txt
index 5e50470..6d8e48b 100644
--- a/Tests/SwiftMix/CMakeLists.txt
+++ b/Tests/SwiftMix/CMakeLists.txt
@@ -3,3 +3,4 @@ project(SwiftMix C Swift)
add_executable(SwiftMix CMain.c ObjCMain.m SwiftMain.swift ObjC-Swift.h)
set_property(TARGET SwiftMix PROPERTY XCODE_ATTRIBUTE_SWIFT_OBJC_BRIDGING_HEADER "ObjC-Swift.h")
+target_compile_options(SwiftMix PRIVATE "$<$<COMPILE_LANGUAGE:C>:-Werror=objc-method-access>")