|
24 | 24 | # |
25 | 25 | # SeqAn has the following optional dependencies: |
26 | 26 | # |
27 | | -# Sharg -- Argument Parsing |
28 | 27 | # ZLIB -- zlib compression library |
29 | 28 | # BZip2 -- libbz2 compression library |
30 | 29 | # Cereal -- Serialisation library |
31 | 30 | # |
32 | | -# If you don't wish for these to be detected (and used), you may define SEQAN3_NO_SHARG, SEQAN3_NO_ZLIB, |
| 31 | +# If you don't wish for these to be detected (and used), you may define SEQAN3_NO_ZLIB, |
33 | 32 | # SEQAN3_NO_BZIP2, and SEQAN3_NO_CEREAL respectively. |
34 | 33 | # |
35 | 34 | # If you wish to require the presence of ZLIB or BZip2, just check for the module before |
36 | 35 | # finding SeqAn3, e.g. "find_package (ZLIB REQUIRED)" and "find_package (BZip2 REQUIRED)". |
37 | | -# If you wish to require the presence of SHARG, you may define SEQAN3_SHARG. |
38 | 36 | # If you wish to require the presence of CEREAL, you may define SEQAN3_CEREAL. |
39 | 37 | # |
40 | 38 | # Once the search has been performed, the following variables will be set. |
@@ -166,25 +164,6 @@ set (CMAKE_REQUIRED_FLAGS ${CMAKE_CXX_FLAGS}) |
166 | 164 | # Force-deactivate optional dependencies |
167 | 165 | # ---------------------------------------------------------------------------- |
168 | 166 |
|
169 | | -# Sharg is auto-detected by default, i.e. used if found, not used if not found. |
170 | | -# You can optionally set a hard requirement so a build fails without Sharg, |
171 | | -# or you can force-disable Sharg even if present on the system. |
172 | | -option (SEQAN3_SHARG "Require Sharg and fail if not present." OFF) |
173 | | -option (SEQAN3_NO_SHARG "Don't use Sharg, even if present." OFF) |
174 | | - |
175 | | -if (SEQAN3_SHARG AND SEQAN3_NO_SHARG) |
176 | | - # this is always a user error, therefore we always error-out, even if SeqAn is not required |
177 | | - message (FATAL_ERROR "You may not specify SEQAN3_SHARG and SEQAN3_NO_SHARG at the same time.\n\ |
178 | | - You can specify neither (use auto-detection), or specify either to force on/off.") |
179 | | - return () |
180 | | -endif () |
181 | | - |
182 | | -if (SEQAN3_SHARG) |
183 | | - set (SEQAN3_DEFINITIONS ${SEQAN3_DEFINITIONS} "-DSEQAN3_WITH_SHARG=1") |
184 | | -elseif (SEQAN3_NO_SHARG) |
185 | | - set (SEQAN3_DEFINITIONS ${SEQAN3_DEFINITIONS} "-DSEQAN3_WITH_SHARG=0") |
186 | | -endif () |
187 | | - |
188 | 167 | # Cereal is auto-detected by default, i.e. used if found, not used if not found. |
189 | 168 | # You can optionally set a hard requirement so a build fails without cereal, |
190 | 169 | # or you can force-disable cereal even if present on the system. |
@@ -300,28 +279,6 @@ else () |
300 | 279 | "The SDSL library is required, but wasn't found. Get it from https://github.com/xxsds/sdsl-lite") |
301 | 280 | endif () |
302 | 281 |
|
303 | | -# ---------------------------------------------------------------------------- |
304 | | -# Sharg dependency is optional, but may set as required |
305 | | -# ---------------------------------------------------------------------------- |
306 | | - |
307 | | -if (NOT SEQAN3_NO_SHARG) |
308 | | - check_include_file_cxx (sharg/version.hpp _SEQAN3_HAVE_SHARG) |
309 | | - |
310 | | - if (_SEQAN3_HAVE_SHARG) |
311 | | - if (SEQAN3_SHARG) |
312 | | - seqan3_config_print ("Required dependency: Sharg found.") |
313 | | - else () |
314 | | - seqan3_config_print ("Optional dependency: Sharg found.") |
315 | | - endif () |
316 | | - else () |
317 | | - if (SEQAN3_SHARG) |
318 | | - seqan3_config_error ("The (optional) Sharg library was marked as required, but wasn't found.") |
319 | | - else () |
320 | | - seqan3_config_print ("Optional dependency: Sharg not found.") |
321 | | - endif () |
322 | | - endif () |
323 | | -endif () |
324 | | - |
325 | 282 | # ---------------------------------------------------------------------------- |
326 | 283 | # Cereal dependency is optional, but may set as required |
327 | 284 | # ---------------------------------------------------------------------------- |
|
0 commit comments