Skip to content

Commit 7816b1b

Browse files
committed
remove fmt
too much noise
1 parent de10b81 commit 7816b1b

17 files changed

Lines changed: 8 additions & 16052 deletions

File tree

CMakeLists.txt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,6 @@ endif ()
1212
option(FMU4CPP_BUILD_TESTS "Build internal tests" OFF)
1313

1414
set(CMAKE_CXX_STANDARD 17)
15-
if (MSVC)
16-
# fmt lib
17-
add_compile_options(/utf-8)
18-
endif ()
1915

2016

2117
############modelIdentifier and export version###########

export/examples/BouncingBall/CMakeLists.txt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,5 @@
22
add_library(bouncing_ball SHARED
33
"bouncing_ball.cpp"
44
)
5-
target_include_directories(bouncing_ball PRIVATE
6-
"${CMAKE_CURRENT_SOURCE_DIR}/../external"
7-
)
85

96
generateFMU("bouncing_ball" "fmi3" "")

export/examples/BouncingBall/bouncing_ball.cpp

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11

22
#include <fmu4cpp/fmu_base.hpp>
33

4-
#define FMT_HEADER_ONLY
5-
#include <fmt/core.h>
4+
#include <sstream>
5+
#include <iomanip>
66

77
using namespace fmu4cpp;
88

@@ -54,7 +54,12 @@ class BouncingBall : public fmu_base {
5454
velocity_ = -velocity_ * bounceFactor_;// Reverse velocity and apply bounce factor
5555
}
5656

57-
log(fmiOK, fmt::format("Current height: {:.2f}, Current velocity: {:.2f}", height_, velocity_));
57+
std::ostringstream oss;
58+
oss << std::fixed << std::setprecision(2)
59+
<< "Current height: " << height_
60+
<< ", Current velocity: " << velocity_;
61+
62+
log(fmiOK, oss.str());
5863

5964
return true;
6065
}

export/examples/external/fmt/args.h

Lines changed: 0 additions & 220 deletions
This file was deleted.

0 commit comments

Comments
 (0)