more detailed NeXus support message.
All checks were successful
Build and Deploy Documentation / build-and-deploy (push) Successful in 18s

This commit is contained in:
2026-01-16 18:00:39 +01:00
parent 84bb6e3a72
commit db54db3394
2 changed files with 8 additions and 1 deletions

View File

@@ -211,6 +211,7 @@ if (nexus)
find_package(HDF5 COMPONENTS CXX REQUIRED) find_package(HDF5 COMPONENTS CXX REQUIRED)
if (HAVE_HDF4) if (HAVE_HDF4)
find_package(HDF4 REQUIRED) find_package(HDF4 REQUIRED)
add_definitions(-DHAVE_HDF4)
endif (HAVE_HDF4) endif (HAVE_HDF4)
find_package(NEXUS REQUIRED) find_package(NEXUS REQUIRED)
add_definitions(-DPNEXUS_ENABLED) add_definitions(-DPNEXUS_ENABLED)

View File

@@ -470,7 +470,13 @@ int main(int argc, char *argv[])
return PMUSR_SUCCESS; return PMUSR_SUCCESS;
} else if (!strcmp(argv[1], "--nexus-support")) { } else if (!strcmp(argv[1], "--nexus-support")) {
#ifdef PNEXUS_ENABLED #ifdef PNEXUS_ENABLED
std::cout << std::endl << ">> musrfit: NeXus support enabled." << std::endl << std::endl; std::cout << std::endl << ">> musrfit: NeXus support enabled. ";
std::cout << " HDF5 ready. ";
#ifdef HAVE_HDF4
std::cout << " HDF4 ready." << std::endl << std::endl;
#else
std::cout << " HDF4 not ready." << std::endl << std::endl;
#endif
#else #else
std::cout << std::endl << "musrfit: NeXus support NOT enabled." << std::endl << std::endl; std::cout << std::endl << "musrfit: NeXus support NOT enabled." << std::endl << std::endl;
#endif #endif