File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,16 @@ set(CMAKE_MODULE_PATH
6
6
"${CMAKE_CURRENT_SOURCE_DIR} /cmake/modules"
7
7
)
8
8
9
+ enable_language (CXX )
10
+ set (CMAKE_CXX_EXTENSIONS NO )
11
+
12
+ option (CPPINTEROP_USE_CLING "Use Cling as backend" OFF )
13
+ option (CPPINTEROP_USE_REPL "Use clang-repl as backend" ON )
14
+ option (CPPINTEROP_ENABLE_TESTING "Enable the CppInterOp testing infrastructure." ON )
15
+
16
+ if (CPPINTEROP_USE_CLING AND CPPINTEROP_USE_REPL )
17
+ message (FATAL_ERROR "We can only use Cling (${CPPINTEROP_USE_CLING} =On) or Repl (CPPINTEROP_USE_REPL=On), but not both of them." )
18
+ endif ()
9
19
# If we are not building as a part of LLVM, build CppInterOp as a standalone
10
20
# project, using LLVM as an external library:
11
21
if ( CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR )
@@ -54,17 +64,7 @@ if( CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR )
54
64
endif ()
55
65
endif ()
56
66
57
- enable_language (CXX )
58
- set (CMAKE_CXX_EXTENSIONS NO )
59
67
include (GNUInstallDirs )
60
- option (CPPINTEROP_USE_CLING "Use Cling as backend" OFF )
61
- option (CPPINTEROP_USE_REPL "Use clang-repl as backend" ON )
62
- option (CPPINTEROP_ENABLE_TESTING "Enable the CppInterOp testing infrastructure." ON )
63
-
64
- if (CPPINTEROP_USE_CLING AND CPPINTEROP_USE_REPL )
65
- message (FATAL_ERROR "We can only use Cling (CPPINTEROP_USE_CLING=On) or Repl (CPPINTEROP_USE_REPL=On), but not both of them." )
66
- endif ()
67
-
68
68
## Define supported version of clang and llvm
69
69
70
70
set (CLANG_MIN_SUPPORTED 13.0 )
You can’t perform that action at this time.
0 commit comments