Skip to content
Snippets Groups Projects
Commit ed74b97b authored by Mohcine Chraibi's avatar Mohcine Chraibi
Browse files

Add definitions for interpreter and its version

even for python2. Still output warning for this case
parent dfe67a5f
No related branches found
No related tags found
No related merge requests found
Pipeline #13512 passed
...@@ -322,6 +322,8 @@ if((PYTHONINTERP_FOUND) AND (${PYTHON_VERSION_MAJOR} EQUAL 3)) ...@@ -322,6 +322,8 @@ if((PYTHONINTERP_FOUND) AND (${PYTHON_VERSION_MAJOR} EQUAL 3))
add_definitions("-DPYTHON_VERSION=\"${PYTHON_VERSION_STRING}\"") add_definitions("-DPYTHON_VERSION=\"${PYTHON_VERSION_STRING}\"")
else() else()
message (WARNING "Could not find python 3x") message (WARNING "Could not find python 3x")
add_definitions("-DPYTHON=\"${PYTHON_EXECUTABLE}\"")
add_definitions("-DPYTHON_VERSION=\"${PYTHON_VERSION_STRING}\"")
endif() endif()
# ----------------------------- cTest ------------------------------------------ # ----------------------------- cTest ------------------------------------------
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment