File tree 3 files changed +34
-16
lines changed 3 files changed +34
-16
lines changed Original file line number Diff line number Diff line change @@ -117,7 +117,10 @@ add_subdirectory(src)
117
117
add_subdirectory (regression)
118
118
add_subdirectory (unit)
119
119
120
- add_subdirectory (jbmc)
120
+ set (CBMC_CXX_STANDARD 11)
121
+ set (CBMC_CXX_STANDARD_REQUIRED true )
122
+ set (CBMC_XCODE_ATTRIBUTE_CODE_SIGN_IDENTITY
123
+ "Developer ID Application: Daniel Kroening" )
121
124
122
125
set_target_properties (
123
126
analyses
@@ -152,20 +155,13 @@ set_target_properties(
152
155
util
153
156
xml
154
157
155
- java_bytecode
156
- java-models-library
157
- jbmc
158
- jbmc-lib
159
- janalyzer
160
- janalyzer-lib
161
- jdiff
162
- jdiff-lib
163
- java-testing-utils
164
- java-unit
165
- miniz
166
-
167
158
PROPERTIES
168
- CXX_STANDARD 11
169
- CXX_STANDARD_REQUIRED true
170
- XCODE_ATTRIBUTE_CODE_SIGN_IDENTITY "Developer ID Application: Daniel Kroening"
159
+ CXX_STANDARD ${CBMC_CXX_STANDARD}
160
+ CXX_STANDARD_REQUIRED ${CBMC_CXX_STANDARD_REQUIRED}
161
+ XCODE_ATTRIBUTE_CODE_SIGN_IDENTITY ${CBMC_XCODE_ATTRIBUTE_CODE_SIGN_IDENTITY}
171
162
)
163
+
164
+ option (WITH_JBMC "Build the JBMC Java front-end" ON )
165
+ if (WITH_JBMC)
166
+ add_subdirectory (jbmc)
167
+ endif ()
Original file line number Diff line number Diff line change @@ -219,6 +219,9 @@ require manual modification of build files.
219
219
```
220
220
You shoud also install [Homebrew](https://brew.sh), after which you can
221
221
run `brew install cmake` to install CMake.
222
+ - On platforms where installing the Java Development Kit and Maven is
223
+ difficult, you can avoid needing these dependencies by not building
224
+ JBMC. Just pass `-DWITH_JBMC=OFF` to cmake in step (4) below.
222
225
- On Windows, ensure you have Visual Studio 2015 or later installed.
223
226
Then, download CMake from the [official download
224
227
page](https://cmake.org/download).
Original file line number Diff line number Diff line change @@ -7,3 +7,22 @@ add_custom_target(java-models-library ALL
7
7
COMMAND cp target /core-models.jar ${CMAKE_CURRENT_SOURCE_DIR} /src/java_bytecode/library/
8
8
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} /lib/java-models-library
9
9
)
10
+
11
+ set_target_properties (
12
+ java_bytecode
13
+ java-models-library
14
+ jbmc
15
+ jbmc-lib
16
+ janalyzer
17
+ janalyzer-lib
18
+ jdiff
19
+ jdiff-lib
20
+ java-testing-utils
21
+ java-unit
22
+ miniz
23
+
24
+ PROPERTIES
25
+ CXX_STANDARD ${CBMC_CXX_STANDARD}
26
+ CXX_STANDARD_REQUIRED ${CBMC_CXX_STANDARD_REQUIRED}
27
+ XCODE_ATTRIBUTE_CODE_SIGN_IDENTITY ${CBMC_XCODE_ATTRIBUTE_CODE_SIGN_IDENTITY}
28
+ )
You can’t perform that action at this time.
0 commit comments