forked from root-project/root
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
42 lines (37 loc) · 1.68 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
# Copyright (C) 1995-2021, Rene Brun and Fons Rademakers.
# All rights reserved.
#
# For the licensing terms see $ROOTSYS/LICENSE.
# For the list of contributors see $ROOTSYS/README/CREDITS.
if(pyroot)
if ((MSVC AND NOT CMAKE_INSTALL_BINDIR STREQUAL CMAKE_INSTALL_PYTHONDIR) OR
(NOT CMAKE_INSTALL_LIBDIR STREQUAL CMAKE_INSTALL_PYTHONDIR AND (how_many_pythons GREATER 1)))
message(STATUS "CMAKE_INSTALL_BINDIR = ${CMAKE_INSTALL_BINDIR}; CMAKE_INSTALL_PYTHONDIR = ${CMAKE_INSTALL_PYTHONDIR} ")
message(FATAL_ERROR "Using a custom CMAKE_INSTALL_PYTHONDIR is not supported for multi-python builds or on Windows. Please check your build configuration.")
endif()
if(pyroot_legacy)
add_subdirectory(pyroot_legacy)
else()
# Machinery necessary to loop in parallel over multiple lists
# This will be used in the CMakeLists of pythonizations,
# cppyy, cppyy-backend and CPyCppyy to build and install targets
# for multiple Python versions (only 2 and 3 for now)
list(LENGTH python_executables len)
math(EXPR how_many_pythons "${len} - 1")
add_subdirectory(pyroot)
add_subdirectory(tpython)
add_subdirectory(jupyroot)
add_subdirectory(jsmva)
if(dataframe AND (PYTHON_VERSION_STRING_Development_Main VERSION_GREATER_EQUAL 3.8))
message(STATUS "Distributed RDataFrame enabled")
add_subdirectory(experimental/distrdf)
else()
message(STATUS "Requirements to enable distributed RDataFrame:")
message(STATUS " dataframe: required:ON, actual:${dataframe}")
message(STATUS " Python version: required:>=3.8, actual:${PYTHON_VERSION_STRING_Development_Main}")
endif()
endif()
endif()
if(r)
add_subdirectory(r)
endif()