From 7d8637e84494d528faf1744cb4f60086ce497506 Mon Sep 17 00:00:00 2001 From: Joseph Schuchart Date: Tue, 19 Dec 2023 16:58:00 -0500 Subject: [PATCH] Detect devel build in vpath builds Use `git describe` on a known OMPI commit sha instead of checking for .git directory. Signed-off-by: Joseph Schuchart --- config/opal_configure_options.m4 | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/config/opal_configure_options.m4 b/config/opal_configure_options.m4 index d5be1630aa9..317eb35380f 100644 --- a/config/opal_configure_options.m4 +++ b/config/opal_configure_options.m4 @@ -36,10 +36,9 @@ opal_show_subtitle "General configuration options" # -# Is this a developer copy? +# Is this a developer copy? Check for a known OMPI git hash # - -if test -d .git; then +if git describe 43a3f4282055c7116ca618c17a9f27247f4923d2 &> /dev/null ; then OPAL_DEVEL=1 else OPAL_DEVEL=0