nightly (development)
latest release (v5.13.3)
5.13.3
5.13.2
5.13.1
5.13.0
5.12.1
5.12.0
5.11.2
5.11.1
5.11.0
5.10.2
5.10.1
5.10.0
5.9.1
5.9.0
5.8.1
5.8.0
5.7.0
5.6.2
5.5.2
C++
Python
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
All
_
a
c
f
g
i
l
m
n
p
q
r
s
t
v
w
+
Functions
c
g
l
m
n
p
q
r
s
t
v
+
Variables
_
l
m
q
v
Typedefs
Enumerations
+
Enumerator
a
c
g
l
m
n
p
q
r
s
t
v
w
+
Classes
Class List
Class Index
Class Hierarchy
+
Class Members
+
All
2
3
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
+
Functions
2
3
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
+
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Typedefs
a
b
c
d
e
g
i
l
m
n
p
q
r
s
t
u
v
w
+
Enumerations
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
+
Enumerator
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Properties
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
w
x
+
Related Functions
:
a
b
c
d
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
x
+
Files
File List
+
File Members
+
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
v
w
x
+
Variables
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
v
w
+
Typedefs
b
c
g
i
k
m
n
o
p
q
s
u
v
z
Enumerations
+
Enumerator
c
k
v
x
y
z
+
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
CMake
ParaViewFindPythonModules.cmake
Go to the documentation of this file.
1
2
# Check whether a Python module is available by name, and if it is,
3
# define a variable in the internal cache.
4
function
(
_find_python_module_internal
module_name)
5
# Check
for
presence of the module. Even though we don
't use all the
6
# variable names set here, assigning them suppresses their output in CMake.
7
execute_process(COMMAND "${Python3_EXECUTABLE}" -c "import ${module_name}"
8
RESULT_VARIABLE IMPORT_${module_name}_EXITCODE
9
OUTPUT_VARIABLE IMPORT_${module_name}_OUTPUT
10
ERROR_VARIABLE IMPORT_${module_name}_ERROR
11
)
12
if(${IMPORT_${module_name}_EXITCODE} EQUAL 0)
13
set(PYTHON_MODULE_${module_name}_FOUND TRUE PARENT_SCOPE)
14
else()
15
set(PYTHON_MODULE_${module_name}_FOUND FALSE PARENT_SCOPE)
16
endif()
17
endfunction()
18
19
# Function to simplify checking if a Python module is available
20
function(find_python_module module_name result)
21
if(NOT PYTHON_MODULE_${module_name}_FOUND)
22
_find_python_module_internal(${module_name})
23
endif()
24
set(${result} ${PYTHON_MODULE_${module_name}_FOUND} PARENT_SCOPE)
25
endfunction()
_find_python_module_internal
function _find_python_module_internal(module_name)
Definition:
ParaViewFindPythonModules.cmake:4
Generated by
1.8.13 on Wed Apr 23 2025