Skip to content
Snippets Groups Projects
Commit 248415ba authored by Cyril Moineau's avatar Cyril Moineau
Browse files

showBackendOpencvVersion now use fmt print instead of Log::info.

parent 432f47da
No related branches found
No related tags found
2 merge requests!310.1.7,!30Minor fix
Pipeline #81216 passed
#ifndef AIDGE_UTILS_SYS_INFO_OPENCV_VERSION_INFO_H #ifndef AIDGE_UTILS_SYS_INFO_OPENCV_VERSION_INFO_H
#define AIDGE_UTILS_SYS_INFO_OPENCV_VERSION_INFO_H #define AIDGE_UTILS_SYS_INFO_OPENCV_VERSION_INFO_H
#include "aidge/utils/Log.hpp" #include <fmt/core.h>
#include "aidge/backend/opencv_version.h" #include "aidge/backend/opencv_version.h"
namespace Aidge { namespace Aidge {
...@@ -15,22 +15,22 @@ constexpr inline const char * getBackendOpencvGitHash(){ ...@@ -15,22 +15,22 @@ constexpr inline const char * getBackendOpencvGitHash(){
} }
void showBackendOpencvVersion() { void showBackendOpencvVersion() {
Log::info("Aidge backend OpenCV: {} ({}), {} {}", getBackendOpencvProjectVersion(), getBackendOpencvGitHash(), __DATE__, __TIME__); fmt::println("Aidge backend OpenCV: {} ({}), {} {}", getBackendOpencvProjectVersion(), getBackendOpencvGitHash(), __DATE__, __TIME__);
// Compiler version // Compiler version
#if defined(__clang__) #if defined(__clang__)
/* Clang/LLVM. ---------------------------------------------- */ /* Clang/LLVM. ---------------------------------------------- */
Log::info("Clang/LLVM compiler version: {}.{}.{}\n", __clang_major__ , __clang_minor__, __clang_patchlevel__); fmt::println("Clang/LLVM compiler version: {}.{}.{}\n", __clang_major__ , __clang_minor__, __clang_patchlevel__);
#elif defined(__ICC) || defined(__INTEL_COMPILER) #elif defined(__ICC) || defined(__INTEL_COMPILER)
/* Intel ICC/ICPC. ------------------------------------------ */ /* Intel ICC/ICPC. ------------------------------------------ */
Log::info("Intel ICC/ICPC compiler version: {}\n", __INTEL_COMPILER); fmt::println("Intel ICC/ICPC compiler version: {}\n", __INTEL_COMPILER);
#elif defined(__GNUC__) || defined(__GNUG__) #elif defined(__GNUC__) || defined(__GNUG__)
/* GNU GCC/G++. --------------------------------------------- */ /* GNU GCC/G++. --------------------------------------------- */
Log::info("GNU GCC/G++ compiler version: {}.{}.{}", __GNUC__, __GNUC_MINOR__, __GNUC_PATCHLEVEL__); fmt::println("GNU GCC/G++ compiler version: {}.{}.{}", __GNUC__, __GNUC_MINOR__, __GNUC_PATCHLEVEL__);
#elif defined(_MSC_VER) #elif defined(_MSC_VER)
/* Microsoft Visual Studio. --------------------------------- */ /* Microsoft Visual Studio. --------------------------------- */
Log::info("Microsoft Visual Studio compiler version: {}\n", _MSC_VER); fmt::println("Microsoft Visual Studio compiler version: {}\n", _MSC_VER);
#else #else
Log::info("Unknown compiler\n"); fmt::println("Unknown compiler\n");
#endif #endif
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment