else()
find_package(Python3 COMPONENTS Interpreter)
endif()
+if(NOT Python3_EXECUTABLE)
+ message(FATAL_ERROR "Python 3 not found")
+endif()
if(DEFINED VERSION)
set(GRAPHVIZ_VERSION_STRING "${VERSION}")
else()
- if(NOT Python3_EXECUTABLE)
- message(FATAL_ERROR "Python 3 not found")
- endif()
execute_process(
COMMAND ${Python3_EXECUTABLE} gen_version.py
WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}"
endif()
endif()
-if(NOT Python3_EXECUTABLE)
- message(FATAL_ERROR "Python 3 not found")
-endif()
# Set GRAPHVIZ_VERSION_BUILD to time of last commit, or to 0 if that fails.
execute_process(
COMMAND ${Python3_EXECUTABLE} gen_version.py --committer-date-graphviz