-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
26 lines (23 loc) · 1.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
#message("Python version major: " ${PYTHON_VERSION_MAJOR})
message("")
message("**** configuring KratosStructuralApplication ****")
if(${CMAKE_SYSTEM_NAME} MATCHES "Android")
message("KratosStructuralApplication is compiled on Android")
include(${CMAKE_CURRENT_SOURCE_DIR}/CMakeLists2.txt)
else()
if((${PYTHON_VERSION_MAJOR} MATCHES "2") OR (${KRATOS_USE_BOOST_PYTHON} MATCHES ON))
if((${PYTHON_VERSION_MAJOR} MATCHES "3") AND (${KRATOS_USE_BOOST_PYTHON} MATCHES ON))
message("KratosStructuralApplication is compiled with Python 3 (Boost.Python)")
else()
message("KratosStructuralApplication is compiled with Python 2")
endif()
include(${CMAKE_CURRENT_SOURCE_DIR}/CMakeLists2.txt)
elseif(${PYTHON_VERSION_MAJOR} MATCHES "3")
message("KratosStructuralApplication is compiled with Python 3")
include(${CMAKE_CURRENT_SOURCE_DIR}/CMakeLists3.txt)
else()
message("KratosStructuralApplication does not detect the Python version")
endif()
endif()
message("**** finish configuring KratosStructuralApplication ****")
message("")