Fix error of version_info.cc not being generated on windows if building python bindings is disabled in CMake (#9660)
This commit is contained in:
parent
8acd528f93
commit
65f8c5ca31
@ -229,6 +229,12 @@ if (tensorflow_ENABLE_GPU)
|
|||||||
endif()
|
endif()
|
||||||
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!
|
# Let's get to work!
|
||||||
include(tf_core_framework.cmake)
|
include(tf_core_framework.cmake)
|
||||||
# NOTE: Disabled until issue #3996 is fixed.
|
# NOTE: Disabled until issue #3996 is fixed.
|
||||||
|
@ -27,7 +27,6 @@
|
|||||||
|
|
||||||
# 1. Resolve the installed version of Python (for Python.h and python).
|
# 1. Resolve the installed version of Python (for Python.h and python).
|
||||||
# TODO(mrry): Parameterize the build script to enable Python 3 building.
|
# TODO(mrry): Parameterize the build script to enable Python 3 building.
|
||||||
include(FindPythonInterp)
|
|
||||||
if(NOT PYTHON_INCLUDE_DIR)
|
if(NOT PYTHON_INCLUDE_DIR)
|
||||||
set(PYTHON_NOT_FOUND false)
|
set(PYTHON_NOT_FOUND false)
|
||||||
exec_program("${PYTHON_EXECUTABLE}"
|
exec_program("${PYTHON_EXECUTABLE}"
|
||||||
|
Loading…
Reference in New Issue
Block a user