#
# This file is part of the GROMACS molecular simulation package.
#
-# Copyright (c) 2012,2013,2014,2015,2016,2017,2018,2019, by the GROMACS development team, led by
+# Copyright (c) 2012,2013,2014,2015,2016 by the GROMACS development team.
+# Copyright (c) 2017,2018,2019,2020,2021, by the GROMACS development team, led by
# Mark Abraham, David van der Spoel, Berk Hess, and Erik Lindahl,
# and including many others, as listed in the AUTHORS file in the
# top-level source directory and at http://www.gromacs.org.
mark_as_advanced(GMX_COMPACT_DOXYGEN)
set(USE_PYTHON_SCRIPTS OFF)
-if (PYTHONINTERP_FOUND)
+if (Python3_Interpreter_FOUND)
set(USE_PYTHON_SCRIPTS ON)
endif()
else()
# If there is no git, we just update the stamp every time, and the
# builds are triggered every time. This should be rare enough, but
- # this case still needs to be supported for the Jenkins job that builds
+ # this case still needs to be supported for the CI job that builds
# the documentation for a release from the release tarball.
gmx_add_custom_output_target(doxygen-source-timestamp
RUN_ALWAYS OUTPUT STAMP
# dependency on doxygen-xml takes care of that transitively.
gmx_add_custom_output_target(dep-graphs-dot ADD_FAST_TARGET
OUTPUT STAMP
- COMMAND ${PYTHON_EXECUTABLE}
+ COMMAND ${Python3_EXECUTABLE}
${CMAKE_CURRENT_SOURCE_DIR}/graphbuilder.py
-S ${CMAKE_SOURCE_DIR} -B ${CMAKE_BINARY_DIR}
- --ignore-cycles ${CMAKE_CURRENT_SOURCE_DIR}/cycle-suppressions.txt
-o ${DEPGRAPH_DIR}
DEPENDS doxygen-xml ${INSTALLED_HEADER_FILE}
${CMAKE_CURRENT_SOURCE_DIR}/doxygenxml.py
${CMAKE_CURRENT_SOURCE_DIR}/gmxtree.py
${CMAKE_CURRENT_SOURCE_DIR}/graphbuilder.py
- ${CMAKE_CURRENT_SOURCE_DIR}/cycle-suppressions.txt
COMMENT "Generating include dependency graphs for dot"
USES_TERMINAL)
# TODO: Consider whether this is the best location for this code,
# since not all of it is Doxygen-specific (but nearly all of it
# relies on the Doxygen XML documentation).
- # The output .log file currently needs to be here, since Jenkins
+ # The output .log file currently needs to be here, since CI
# expects that.
set(check_source_command
- ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/check-source.py
+ ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/check-source.py
-S ${CMAKE_SOURCE_DIR} -B ${CMAKE_BINARY_DIR}
-l ${CMAKE_CURRENT_BINARY_DIR}/check-source.log
- --ignore ${CMAKE_CURRENT_SOURCE_DIR}/suppressions.txt
- --ignore-cycles ${CMAKE_CURRENT_SOURCE_DIR}/cycle-suppressions.txt)
+ --ignore ${CMAKE_CURRENT_SOURCE_DIR}/suppressions.txt)
add_custom_target(check-source COMMAND ${check_source_command}
COMMENT "Checking source code for various issues" VERBATIM USES_TERMINAL)
add_custom_target(check-source-fast COMMAND ${check_source_command}