From cc81133513599287571af4812a6c642be0de0f9e Mon Sep 17 00:00:00 2001 From: Paul Bauer Date: Wed, 20 Jan 2021 10:39:02 +0000 Subject: [PATCH] Use correct python interpreter cmake check Still needed to complete address checksumming issue. Fixes #3862 --- cmake/gmxVersionInfo.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmake/gmxVersionInfo.cmake b/cmake/gmxVersionInfo.cmake index bd0ad216fe..d8829fa6b0 100644 --- a/cmake/gmxVersionInfo.cmake +++ b/cmake/gmxVersionInfo.cmake @@ -435,7 +435,7 @@ set(CHECKSUM_FILE "${PROJECT_SOURCE_DIR}/src/reference_checksum") # not been tampered with. # Note: The RUN_ALWAYS here is to regenerate the hash file only, it does not # mean that the target is run in all builds -if (PYTHONINTERP_FOUND) +if (Python3_Interpreter_FOUND) # We need the full path to the directories after passing it through set(FULL_PATH_DIRECTORIES "") foreach(DIR ${SET_OF_DIRECTORIES_TO_CHECKSUM}) @@ -452,7 +452,7 @@ if (PYTHONINTERP_FOUND) else() add_custom_target(reference_checksum COMMAND ${CMAKE_COMMAND} -E echo - "Can not checksum files without python being available" + "Can not checksum files without python3 being available" WORKING_DIRECTORY ${PROJECT_SOURCE_DIR} COMMENT "Generating reference checksum of source files") endif() -- 2.22.0