diff options
Diffstat (limited to 'tensorflow/contrib/cmake/CMakeLists.txt')
-rw-r--r-- | tensorflow/contrib/cmake/CMakeLists.txt | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tensorflow/contrib/cmake/CMakeLists.txt b/tensorflow/contrib/cmake/CMakeLists.txt index af7b4fb386..83b405fd4e 100644 --- a/tensorflow/contrib/cmake/CMakeLists.txt +++ b/tensorflow/contrib/cmake/CMakeLists.txt @@ -229,6 +229,12 @@ if (tensorflow_ENABLE_GPU) endif() endif() +# Find python executable +include(FindPythonInterp) +if(NOT ${PYTHONINTERP_FOUND}) + message(FATAL_ERROR "CMake was unable to find a python interpreter.") +endif() + # Let's get to work! include(tf_core_framework.cmake) # NOTE: Disabled until issue #3996 is fixed. |