forked from symengine/symengine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
512 lines (424 loc) · 16.1 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
cmake_minimum_required(VERSION 2.8.5)
set(CMAKE_USER_MAKE_RULES_OVERRIDE ${CMAKE_SOURCE_DIR}/cmake/UserOverride.cmake)
project(symengine)
set(SYMENGINE_MAJOR_VERSION 0)
set(SYMENGINE_MINOR_VERSION 1)
set(SYMENGINE_PATCH_VERSION 0)
set(SYMENGINE_VERSION ${SYMENGINE_MAJOR_VERSION}.${SYMENGINE_MINOR_VERSION}.${SYMENGINE_PATCH_VERSION})
set(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake)
# Make sure that CMAKE_BUILD_TYPE is either Debug or Release:
if (NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE Release
CACHE STRING "Build type (Debug, Release)" FORCE)
endif ()
if (NOT (CMAKE_BUILD_TYPE STREQUAL "Debug" OR
CMAKE_BUILD_TYPE STREQUAL "Release"))
message("${CMAKE_BUILD_TYPE}")
message(FATAL_ERROR "CMAKE_BUILD_TYPE must be one of: Debug, Release (current value: '${CMAKE_BUILD_TYPE}')")
endif ()
if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
set(CMAKE_CXX_FLAGS_DEBUG
"${CMAKE_CXX_FLAGS_DEBUG} -Wno-unused-parameter -ggdb")
set(CMAKE_CXX_FLAGS_RELEASE
"${CMAKE_CXX_FLAGS_RELEASE} -Wno-unused-parameter")
endif()
if (CMAKE_CXX_COMPILER_ID MATCHES Clang)
set(CMAKE_CXX_FLAGS_DEBUG
"${CMAKE_CXX_FLAGS_DEBUG} -Wno-unused-parameter -ggdb")
set(CMAKE_CXX_FLAGS_RELEASE
"${CMAKE_CXX_FLAGS_RELEASE} -Wno-unused-parameter")
endif()
# Check c++11 support
try_compile(CXX11 "${CMAKE_CURRENT_BINARY_DIR}/cxx" "${CMAKE_SOURCE_DIR}/cmake/checkcxx11.cpp"
CMAKE_FLAGS "-DCOMPILE_DEFINITIONS=${CMAKE_CXX_FLAGS_RELEASE}" OUTPUT_VARIABLE CXX11_ERROR_LOG)
if (NOT ${CXX11})
message(FATAL_ERROR "Compiler does not support C++11 constructs. \n"
"CXX11 Error Log : \n${CXX11_ERROR_LOG}")
endif()
set(HAVE_GCC_ABI_DEMANGLE yes
CACHE BOOL "Build with C++ name demangling support")
set(HAVE_C_FUNCTION_NOT_FUNC no
CACHE BOOL "C compiler supports __FUNCTION__ but not __func__")
set(HAVE_DEFAULT_CONSTRUCTORS yes
CACHE BOOL "C++ compiler supports default constructors")
set(HAVE_SYMENGINE_NOEXCEPT yes
CACHE BOOL "C++ compiler supports noexcept specifier")
set(HAVE_SYMENGINE_IS_CONSTRUCTIBLE yes
CACHE BOOL "C++ compiler supports std::is_constructible")
set(HAVE_SYMENGINE_RESERVE yes
CACHE BOOL "C++ compiler supports std::unordered_map<>::reserve()")
if (MSVC)
# MSVC doesn't have cxxabi.h
set(HAVE_GCC_ABI_DEMANGLE no)
# MSVC only supports __func__ in a C++ mode, not a C mode
set(HAVE_C_FUNCTION_NOT_FUNC yes)
# MSVC does not support =default for constructors
set(HAVE_DEFAULT_CONSTRUCTORS no)
endif()
if (CMAKE_CXX_COMPILER_ID STREQUAL "Intel")
set(HAVE_DEFAULT_CONSTRUCTORS no)
set(HAVE_SYMENGINE_NOEXCEPT no)
set(HAVE_SYMENGINE_IS_CONSTRUCTIBLE no)
set(HAVE_SYMENGINE_RESERVE no)
endif()
if (CMAKE_CXX_COMPILER_ID STREQUAL "PGI")
set(HAVE_DEFAULT_CONSTRUCTORS no)
set(HAVE_SYMENGINE_RESERVE no)
endif()
if ((CMAKE_CXX_COMPILER_ID MATCHES Clang) AND (CMAKE_BUILD_TYPE STREQUAL "Release"))
try_compile(CHECK_CLANG "${CMAKE_CURRENT_BINARY_DIR}/cxx" "${CMAKE_SOURCE_DIR}/cmake/checkclang.cpp")
if (NOT ${CHECK_CLANG})
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -D__extern_always_inline=inline" )
endif()
endif()
# GMP
find_package(GMP REQUIRED)
include_directories(${GMP_INCLUDE_DIRS})
set(LIBS ${LIBS} ${GMP_TARGETS})
set(PKGS ${PKGS} "GMP")
# Check gmpxx
if (NOT(MSVC))
try_compile(GMPXX "${CMAKE_CURRENT_BINARY_DIR}/cxx" "${CMAKE_SOURCE_DIR}/cmake/checkgmpxx.cpp"
CMAKE_FLAGS "-DCOMPILE_DEFINITIONS=${CMAKE_CXX_FLAGS_RELEASE}"
CMAKE_FLAGS "-DINCLUDE_DIRECTORIES=${GMP_INCLUDE_DIRS}"
CMAKE_FLAGS "-DLINK_LIBRARIES=${GMP_LIBRARIES}"
OUTPUT_VARIABLE GMPXX_ERROR_LOG)
if (NOT ${GMPXX})
message(FATAL_ERROR "GMP library being linked is not supported by CMAKE_CXX_COMPILER used. \n"
"Recompile GMP with C++ support using ${CMAKE_CXX_COMPILER}, remove CMakeCache.txt and try again.\n"
"Error Log : \n${GMPXX_ERROR_LOG}")
endif()
endif()
# ECM
set(WITH_ECM no
CACHE BOOL "Build with ECM (libecm-dev) support")
if (WITH_ECM)
find_package(ECM REQUIRED)
include_directories(${ECM_INCLUDE_DIRS})
set(LIBS ${LIBS} ${ECM_TARGETS})
set(HAVE_SYMENGINE_ECM yes)
set(PKGS ${PKGS} "ECM")
endif()
# PRIMESIEVE
set(WITH_PRIMESIEVE no
CACHE BOOL "Build with primesieve")
if (WITH_PRIMESIEVE)
find_package(PRIMESIEVE REQUIRED)
include_directories(${PRIMESIEVE_INCLUDE_DIRS})
set(LIBS ${LIBS} ${PRIMESIEVE_TARGETS})
set(HAVE_SYMENGINE_PRIMESIEVE yes)
set(PKGS ${PKGS} "PRIMESIEVE")
endif()
# ARB
set(WITH_ARB no
CACHE BOOL "Build with Arb")
set(HAVE_SYMENGINE_ARB False)
# MPFR
set(WITH_MPFR no
CACHE BOOL "Build with MPFR")
set(HAVE_SYMENGINE_MPFR False)
# MPC
set(WITH_MPC no
CACHE BOOL "Build with MPC")
set(HAVE_SYMENGINE_MPC False)
if (WITH_ARB)
find_package(FLINT REQUIRED)
include_directories(${FLINT_INCLUDE_DIRS})
set(LIBS ${LIBS} ${FLINT_TARGETS})
set(PKGS ${PKGS} "FLINT")
# Workaround for https://github.com/fredrik-johansson/arb/issues/24
include_directories(${FLINT_INCLUDE_DIRS}/flint)
set(WITH_MPFR yes)
find_package(ARB REQUIRED)
include_directories(${ARB_INCLUDE_DIRS})
set(LIBS ${LIBS} ${ARB_TARGETS})
set(HAVE_SYMENGINE_ARB True)
set(PKGS ${PKGS} "ARB")
endif()
if (WITH_MPC)
find_package(MPC REQUIRED)
include_directories(${MPC_INCLUDE_DIRS})
set(LIBS ${LIBS} ${MPC_TARGETS})
set(HAVE_SYMENGINE_MPC True)
set(WITH_MPFR yes)
set(PKGS ${PKGS} "MPC")
endif()
# Piranha
set(WITH_PIRANHA no
CACHE BOOL "Build with Piranha")
# Boost
set(WITH_BOOST no
CACHE BOOL "Build with Boost")
# PTHREAD
set(WITH_PTHREAD no
CACHE BOOL "Build with PTHREAD")
if (WITH_PIRANHA)
set(WITH_PTHREAD yes)
set(WITH_MPFR yes)
set(CMAKE_CXX_FLAGS_RELEASE
"${CMAKE_CXX_FLAGS_RELEASE} -DNDEBUG")
find_package(PIRANHA REQUIRED)
include_directories(${PIRANHA_INCLUDE_DIRS})
set(HAVE_SYMENGINE_PIRANHA yes)
set(PKGS ${PKGS} "PIRANHA")
set(BOOST_COMPONENTS ${BOOST_COMPONENTS} serialization iostreams)
set(WITH_BOOST yes)
endif()
# BENCHMARKS
set(BUILD_BENCHMARKS yes
CACHE BOOL "Build SymEngine benchmarks")
set(BUILD_BENCHMARKS_NONIUS no
CACHE BOOL "Build SymEngine Nonius benchmarks")
if (BUILD_BENCHMARKS)
if (BUILD_BENCHMARKS_NONIUS)
if(NOT WIN32)
set(WITH_PTHREAD yes)
endif()
set(WITH_BOOST yes)
endif()
endif()
if (WITH_PTHREAD)
find_package(PTHREAD REQUIRED)
include_directories(${PTHREAD_INCLUDE_DIRS})
set(LIBS ${LIBS} ${PTHREAD_TARGETS})
set(HAVE_SYMENGINE_PTHREAD yes)
set(PKGS ${PKGS} "PTHREAD")
endif()
if (WITH_BOOST)
find_package(Boost REQUIRED COMPONENTS ${BOOST_COMPONENTS})
include_directories(${Boost_INCLUDE_DIRS})
set(LIBS ${LIBS} ${Boost_LIBRARIES})
set(HAVE_SYMENGINE_BOOST yes)
endif()
if (WITH_MPFR)
find_package(MPFR REQUIRED)
include_directories(${MPFR_INCLUDE_DIRS})
set(LIBS ${LIBS} ${MPFR_TARGETS})
set(HAVE_SYMENGINE_MPFR True)
set(PKGS ${PKGS} "MPFR")
endif()
# BFD
set(WITH_BFD no
CACHE BOOL "Build with BFD (binutils-dev) support")
if (WITH_BFD)
find_package(BFD REQUIRED)
find_package(LINKH REQUIRED)
include_directories(${BFD_INCLUDE_DIRS} ${LINKH_INCLUDE_DIRS})
set(LIBS ${LIBS} ${BFD_TARGETS})
set(HAVE_TEUCHOS_BFD yes)
set(HAVE_TEUCHOS_LINK yes)
set(HAVE_TEUCHOS_EXECINFO yes)
find_package(EXECINFO REQUIRED)
include_directories(${EXECINFO_INCLUDE_DIRS})
set(LIBS ${LIBS} ${EXECINFO_TARGETS})
set(PKGS ${PKGS} "BFD" "LINKH" "EXECINFO")
endif()
# TCMalloc
set(WITH_TCMALLOC no
CACHE BOOL "Build with TCMalloc linked")
if (WITH_TCMALLOC)
find_package(TCMALLOC REQUIRED)
set(LIBS ${LIBS} ${TCMALLOC_TARGETS})
if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
set(CMAKE_CXX_FLAGS_DEBUG
"${CMAKE_CXX_FLAGS_DEBUG} -fno-builtin-malloc -fno-builtin-calloc -fno-builtin-realloc -fno-builtin-free")
set(CMAKE_CXX_FLAGS_RELEASE
"${CMAKE_CXX_FLAGS_RELEASE} -fno-builtin-malloc -fno-builtin-calloc -fno-builtin-realloc -fno-builtin-free")
endif()
set(PKGS ${PKGS} "TCMALLOC")
endif()
# Doxygen
set(BUILD_DOXYGEN no
CACHE BOOL "Create C++ API Doxgyen documentation.")
if (BUILD_DOXYGEN)
find_package(Doxygen REQUIRED)
if(DOXYGEN_FOUND)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/doc/Doxyfile
${CMAKE_CURRENT_BINARY_DIR}/doc/Doxyfile @ONLY)
add_custom_target(doc ALL
${DOXYGEN_EXECUTABLE} ${CMAKE_CURRENT_BINARY_DIR}/doc/Doxyfile
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/doc
COMMENT "Generating API documentation with Doxygen" VERBATIM)
install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/doc/html/ DESTINATION doc)
endif(DOXYGEN_FOUND)
endif()
# SYMENGINE_ASSERT
set(WITH_SYMENGINE_ASSERT no
CACHE BOOL "Enable SYMENGINE_ASSERT macro")
# SYMENGINE_RCP
set(WITH_SYMENGINE_RCP yes
CACHE BOOL "Enable SYMENGINE_RCP support")
# SYMENGINE_THREAD_SAFE
set(WITH_SYMENGINE_THREAD_SAFE no
CACHE BOOL "Enable SYMENGINE_THREAD_SAFE support")
# TESTS
set(BUILD_TESTS yes
CACHE BOOL "Build SymEngine tests")
# OpenMp
set(WITH_OPENMP no
CACHE BOOL "Build with OpenMP")
if (WITH_OPENMP)
find_package(OpenMP REQUIRED)
if(OPENMP_FOUND)
set(CMAKE_CXX_FLAGS_DEBUG
"${CMAKE_CXX_FLAGS_DEBUG} ${OpenMP_CXX_FLAGS}")
set(CMAKE_CXX_FLAGS_RELEASE
"${CMAKE_CXX_FLAGS_RELEASE} ${OpenMP_CXX_FLAGS}")
set(WITH_SYMENGINE_THREAD_SAFE yes)
endif()
endif()
if (CMAKE_BUILD_TYPE STREQUAL "Debug")
# In Debug mode we use Teuchos::RCP and enable debugging checks that make
# the usage 100% safe, as long as the Teuchos guidelines are followed.
set(WITH_SYMENGINE_RCP no) # Use the Teuchos::RCP
set(HAVE_TEUCHOS_DEBUG yes) # Enable safety checks
set(HAVE_TEUCHOS_DEBUG_RCP_NODE_TRACING yes) # Enable safety checks
set(WITH_SYMENGINE_ASSERT yes) # Also enable assertions
endif()
enable_testing()
add_subdirectory(symengine)
set(SymEngine_DIR ${PROJECT_BINARY_DIR} CACHE BOOL "SymEngine Build Directory")
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${PROJECT_SOURCE_DIR})
if(WIN32 AND NOT CYGWIN)
set(DEF_INSTALL_CMAKE_DIR CMake)
set(DEF_INSTALL_CMAKE_DIR_REL ..)
else()
set(DEF_INSTALL_CMAKE_DIR lib/cmake/symengine)
set(DEF_INSTALL_CMAKE_DIR_REL ../../..)
endif()
set(INSTALL_CMAKE_DIR ${DEF_INSTALL_CMAKE_DIR} CACHE PATH
"Installation directory for CMake files")
export(TARGETS symengine teuchos FILE "${PROJECT_BINARY_DIR}/SymEngineTargets.cmake")
foreach(PKG ${PKGS})
set(SYMENGINE_PKG_FINDS "${SYMENGINE_PKG_FINDS}\nset(SYMENGINE_${PKG}_LIBRARIES ${${PKG}_LIBRARIES})")
set(SYMENGINE_PKG_FINDS "${SYMENGINE_PKG_FINDS}\nset(SYMENGINE_${PKG}_INCLUDE_DIRS ${${PKG}_INCLUDE_DIRS})")
endforeach()
# ... for the build tree
set(CONF_INCLUDE_DIRS ${PROJECT_SOURCE_DIR} ${PROJECT_BINARY_DIR}
${PROJECT_SOURCE_DIR}/symengine/utilities/teuchos ${PROJECT_BINARY_DIR}/symengine/utilities/teuchos)
set(SYMENGINE_BUILD_TREE yes)
configure_file(cmake/SymEngineConfig.cmake.in
"${PROJECT_BINARY_DIR}/SymEngineConfig.cmake" @ONLY)
export(TARGETS symengine teuchos
FILE "${PROJECT_BINARY_DIR}/SymEngineTargets.cmake")
# ... for the install tree
set(SYMENGINE_BUILD_TREE no)
configure_file(cmake/SymEngineConfig.cmake.in
"${PROJECT_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/SymEngineConfig.cmake" @ONLY)
#include(CMakePackageConfigHelpers)
#write_basic_package_version_file(
# "${CMAKE_CURRENT_BINARY_DIR}/SymEngineConfigVersion.cmake"
# VERSION ${SYMENGINE_VERSION}
# COMPATIBILITY AnyNewerVersion
#)
configure_file(cmake/SymEngineConfigVersion.cmake.in SymEngineConfigVersion.cmake @ONLY)
install(FILES "${PROJECT_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/SymEngineConfig.cmake"
${PROJECT_BINARY_DIR}/SymEngineConfigVersion.cmake
cmake/FindARB.cmake
cmake/FindBFD.cmake
cmake/FindECM.cmake
cmake/FindEXECINFO.cmake
cmake/FindFLINT.cmake
cmake/FindGMP.cmake
cmake/FindLINKH.cmake
cmake/FindMPC.cmake
cmake/FindMPFR.cmake
cmake/FindPIRANHA.cmake
cmake/FindPRIMESIEVE.cmake
cmake/FindPTHREAD.cmake
cmake/FindTCMALLOC.cmake
cmake/LibFindMacros.cmake
DESTINATION ${INSTALL_CMAKE_DIR})
install(EXPORT SymEngineTargets DESTINATION ${INSTALL_CMAKE_DIR})
file(COPY ${symengine_SOURCE_DIR}/cmake/ DESTINATION ${symengine_BINARY_DIR}/cmake)
if (BUILD_BENCHMARKS)
add_subdirectory(benchmarks)
endif()
# At the end we print a nice summary
message("--------------------------------------------------------------------------------")
message("")
message("+-------------------------------+")
message("| Configuration results SUMMARY |")
message("+-------------------------------+")
message("")
message("CMAKE_C_COMPILER: ${CMAKE_C_COMPILER}")
message("CMAKE_CXX_COMPILER: ${CMAKE_CXX_COMPILER}")
message("CMAKE_BUILD_TYPE: ${CMAKE_BUILD_TYPE}")
message("CMAKE_CONFIGURATION_TYPES: ${CMAKE_CONFIGURATION_TYPES}")
message("CMAKE_CXX_FLAGS_DEBUG: ${CMAKE_CXX_FLAGS_DEBUG}")
message("CMAKE_CXX_FLAGS_RELEASE: ${CMAKE_CXX_FLAGS_RELEASE}")
message("CMAKE_INSTALL_PREFIX: ${CMAKE_INSTALL_PREFIX}")
message("WITH_SYMENGINE_ASSERT: ${WITH_SYMENGINE_ASSERT}")
message("WITH_SYMENGINE_RCP: ${WITH_SYMENGINE_RCP}")
if (NOT WITH_SYMENGINE_RCP)
message("HAVE_TEUCHOS_DEBUG: ${HAVE_TEUCHOS_DEBUG}")
message("HAVE_TEUCHOS_DEBUG_RCP_NODE_TRACING: ${HAVE_TEUCHOS_DEBUG_RCP_NODE_TRACING}")
endif ()
message("HAVE_GCC_ABI_DEMANGLE: ${HAVE_GCC_ABI_DEMANGLE}")
message("HAVE_C_FUNCTION_NOT_FUNC: ${HAVE_C_FUNCTION_NOT_FUNC}")
message("HAVE_DEFAULT_CONSTRUCTORS: ${HAVE_DEFAULT_CONSTRUCTORS}")
message("HAVE_SYMENGINE_NOEXCEPT: ${HAVE_SYMENGINE_NOEXCEPT}")
message("HAVE_SYMENGINE_IS_CONSTRUCTIBLE: ${HAVE_SYMENGINE_IS_CONSTRUCTIBLE}")
message("HAVE_SYMENGINE_RESERVE: ${HAVE_SYMENGINE_RESERVE}")
message("WITH_SYMENGINE_THREAD_SAFE: ${WITH_SYMENGINE_THREAD_SAFE}")
message("BUILD_TESTS: ${BUILD_TESTS}")
message("BUILD_BENCHMARKS: ${BUILD_BENCHMARKS}")
message("BUILD_BENCHMARKS_NONIUS: ${BUILD_BENCHMARKS_NONIUS}")
message("GMP_INCLUDE_DIRS: ${GMP_INCLUDE_DIRS}")
message("GMP_LIBRARIES: ${GMP_LIBRARIES}")
message("WITH_BFD: ${WITH_BFD}")
if (WITH_BFD)
message("BFD_INCLUDE_DIRS: ${BFD_INCLUDE_DIRS}")
message("BFD_LIBRARIES: ${BFD_LIBRARIES}")
message("LINKH_INCLUDE_DIRS: ${LINKH_INCLUDE_DIRS}")
message("EXECINFO_INCLUDE_DIRS: ${EXECINFO_INCLUDE_DIRS}")
endif()
message("WITH_ECM: ${WITH_ECM}")
if (WITH_ECM)
message("ECM_INCLUDE_DIRS: ${ECM_INCLUDE_DIRS}")
message("ECM_LIBRARIES: ${ECM_LIBRARIES}")
endif()
message("WITH_PRIMESIEVE: ${WITH_PRIMESIEVE}")
if (WITH_PRIMESIEVE)
message("PRIMESIEVE_INCLUDE_DIRS: ${PRIMESIEVE_INCLUDE_DIRS}")
message("PRIMESIEVE_LIBRARIES: ${PRIMESIEVE_LIBRARIES}")
endif()
message("WITH_ARB: ${WITH_ARB}")
if (WITH_ARB)
message("ARB_INCLUDE_DIRS: ${ARB_INCLUDE_DIRS}")
message("ARB_LIBRARIES: ${ARB_LIBRARIES}")
message("FLINT_INCLUDE_DIRS: ${FLINT_INCLUDE_DIRS}")
message("FLINT_LIBRARIES: ${FLINT_LIBRARIES}")
endif()
message("WITH_MPFR: ${WITH_MPFR}")
if (WITH_MPFR)
message("MPFR_INCLUDE_DIRS: ${MPFR_INCLUDE_DIRS}")
message("MPFR_LIBRARIES: ${MPFR_LIBRARIES}")
endif()
message("WITH_PIRANHA: ${WITH_PIRANHA}")
if (WITH_PIRANHA)
message("PIRANHA_INCLUDE_DIRS: ${PIRANHA_INCLUDE_DIRS}")
endif()
message("WITH_BOOST: ${WITH_BOOST}")
if (WITH_BOOST)
message("BOOST_INCLUDE_DIRS: ${Boost_INCLUDE_DIRS}")
message("BOOST_LIBRARIES: ${Boost_LIBRARIES}")
endif()
message("WITH_PTHREAD: ${WITH_PTHREAD}")
if (WITH_PTHREAD)
message("PTHREAD_INCLUDE_DIRS: ${PTHREAD_INCLUDE_DIRS}")
message("PTHREAD_LIBRARIES: ${PTHREAD_LIBRARIES}")
endif()
message("WITH_MPC: ${WITH_MPC}")
if (WITH_MPC)
message("MPC_INCLUDE_DIRS: ${MPC_INCLUDE_DIRS}")
message("MPC_LIBRARIES: ${MPC_LIBRARIES}")
endif()
message("WITH_TCMALLOC: ${WITH_TCMALLOC}")
if (WITH_TCMALLOC)
message("TCMALLOC_LIBRARIES: ${TCMALLOC_LIBRARIES}")
endif()
message("WITH_OPENMP: ${WITH_OPENMP}")
message("")
message("--------------------------------------------------------------------------------")
message("")