Skip to content

Commit 0e602c3

Browse files
committed
Apply fixes after rebasing
Added yaml-cpp requirement to main CMakeLists. Changed include order in Tutorial1 macro. Removed endl from LOG(info) in FairYamlVMCConfig.
1 parent 0a43580 commit 0e602c3

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ set(FAIRROOT_LIBRARY_PROPERTIES ${FAIRROOT_LIBRARY_PROPERTIES}
222222
)
223223
set(PROJECT_LIBRARY_PROPERTIES ${FAIRROOT_LIBRARY_PROPERTIES})
224224

225-
find_package2(PUBLIC yaml-cpp)
225+
find_package2(PUBLIC yaml-cpp REQUIRED)
226226
# Workaround missing exported include directories
227227
# Upstream has fixed this in https://github.com/jbeder/yaml-cpp/commit/ab5f9259a4e67d3fe0e4832bd407a9e596e2d884 (since 0.6.3)
228228
if(yaml-cpp_FOUND)

examples/simulation/Tutorial1/macros/run_tutorial1_binary.C

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66
* copied verbatim in the file "LICENSE" *
77
********************************************************************************/
88

9-
#if !defined(__CLING__) || defined(__ROOTCLING__)
10-
#include <iostream>
119
#include "FairBoxGenerator.h"
1210
#include "FairCave.h"
1311
#include "FairParRootFileIo.h"
@@ -22,6 +20,9 @@
2220
#include <TRandom3.h>
2321
#include <TStopwatch.h>
2422

23+
#if !defined(__CLING__) || defined(__ROOTCLING__)
24+
#include <iostream>
25+
2526
using std::cout;
2627
using std::endl;
2728
#endif

fairtools/MCConfigurator/FairYamlVMCConfig.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ void FairYamlVMCConfig::SetupPostInit(const char* mcEngine)
6969
if (!((strcmp(mcEngine, "TGeant4") == 0))) {
7070
LOG(fatal) << "FairYamlVMCConfig::SetupPostInit() only valid for TGeant4.";
7171
}
72-
LOG(info) << "Loading Geant4 PostInit Config." << endl;
72+
LOG(info) << "Loading Geant4 PostInit Config.";
7373

7474
TString work = getenv("VMCWORKDIR");
7575
TString work_config = work + "/gconfig/";

0 commit comments

Comments
 (0)