projects
/
platform
/
upstream
/
cmake.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
814237eccab457f06cccee99939f3212c782b961
[platform/upstream/cmake.git]
/
Tests
/
RunCMake
/
CheckSourceCompiles
/
CheckOBJCXXSourceCompiles.cmake
1
enable_language (OBJCXX)
2
include(CheckSourceCompiles)
3
4
set(OBJCXX 1) # test that this is tolerated
5
6
check_source_compiles(OBJCXX [[
7
#include <vector>
8
#import <Foundation/Foundation.h>
9
int main() {
10
std::vector<int> v;
11
NSObject *foo;
12
return 0;
13
}
14
]] SHOULD_BUILD)
15
16
17
if(NOT SHOULD_BUILD)
18
message(SEND_ERROR "Test fail for OBJCXX source.")
19
endif()