projects
/
platform
/
upstream
/
cmake.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Imported Upstream version 3.25.0
[platform/upstream/cmake.git]
/
Tests
/
RunCMake
/
CheckSourceCompiles
/
CheckSourceCompilesOBJC.cmake
1
enable_language (OBJC)
2
include(CheckSourceCompiles)
3
4
set(OBJC 1) # test that this is tolerated
5
6
check_source_compiles(OBJC [[
7
#import <Foundation/Foundation.h>
8
int main() {
9
NSObject *foo;
10
return 0;
11
}
12
]] SHOULD_BUILD)
13
14
if(NOT SHOULD_BUILD)
15
message(SEND_ERROR "Test fail for valid OBJC source.")
16
endif()