From f9c6e6c8f3ce9a7f6b734eada63fb2b9e8a32166 Mon Sep 17 00:00:00 2001 From: hugtalbot Date: Fri, 10 Apr 2026 15:21:07 +0200 Subject: [PATCH] Fix cmakedefine variable to fix the CI --- src/Registration/config.h.in | 3 +-- src/Registration/initRegistration.cpp | 6 +++--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/Registration/config.h.in b/src/Registration/config.h.in index a46ee15..97a02d9 100644 --- a/src/Registration/config.h.in +++ b/src/Registration/config.h.in @@ -29,8 +29,7 @@ #cmakedefine01 REGISTRATION_HAVE_SOFADISTANCEGRID #cmakedefine01 REGISTRATION_HAVE_SOFA_GL -#cmakedefine01 REGISTRATION_HAVE_IMAGE -#cmakedefine REGISTRATION_USES_IMAGE +#cmakedefine REGISTRATION_HAVE_IMAGE #ifdef SOFA_BUILD_REGISTRATION # define SOFA_TARGET Registration diff --git a/src/Registration/initRegistration.cpp b/src/Registration/initRegistration.cpp index 02bbf58..0b3745e 100644 --- a/src/Registration/initRegistration.cpp +++ b/src/Registration/initRegistration.cpp @@ -30,13 +30,13 @@ namespace sofa::component namespace sofa::component::engine { extern void registerGroupwiseRegistrationEngine(sofa::core::ObjectFactory* factory); -#ifdef REGISTRATION_USES_IMAGE +#ifdef REGISTRATION_HAVE_IMAGE extern void registerIntensityProfileCreator(sofa::core::ObjectFactory* factory); #endif } namespace sofa::component::forcefield { -#ifdef REGISTRATION_USES_IMAGE +#ifdef REGISTRATION_HAVE_IMAGE extern void registerIntensityProfileRegistrationForceField(sofa::core::ObjectFactory* factory); #endif extern void registerClosestPointRegistrationForceField(sofa::core::ObjectFactory* factory); @@ -100,7 +100,7 @@ namespace registration { sofa::component::registerInertiaAlign(factory); sofa::component::engine::registerGroupwiseRegistrationEngine( factory); -#ifdef REGISTRATION_USES_IMAGE +#ifdef REGISTRATION_HAVE_IMAGE sofa::component::engine::registerIntensityProfileCreator(factory); sofa::component::forcefield::registerIntensityProfileRegistrationForceField(factory); #endif