diff --git a/CMakeLists.txt b/CMakeLists.txt index d3afd1d6e0..8fbf471570 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -222,7 +222,7 @@ set(FAIRROOT_LIBRARY_PROPERTIES ${FAIRROOT_LIBRARY_PROPERTIES} ) set(PROJECT_LIBRARY_PROPERTIES ${FAIRROOT_LIBRARY_PROPERTIES}) -find_package2(PUBLIC yaml-cpp) +find_package2(PUBLIC yaml-cpp REQUIRED) # Workaround missing exported include directories # Upstream has fixed this in https://github.com/jbeder/yaml-cpp/commit/ab5f9259a4e67d3fe0e4832bd407a9e596e2d884 (since 0.6.3) if(yaml-cpp_FOUND) diff --git a/examples/simulation/Tutorial1/macros/run_tutorial1_binary.C b/examples/simulation/Tutorial1/macros/run_tutorial1_binary.C index 48b3ea4040..54a6f28137 100644 --- a/examples/simulation/Tutorial1/macros/run_tutorial1_binary.C +++ b/examples/simulation/Tutorial1/macros/run_tutorial1_binary.C @@ -6,8 +6,6 @@ * copied verbatim in the file "LICENSE" * ********************************************************************************/ -#if !defined(__CLING__) || defined(__ROOTCLING__) -#include #include "FairBoxGenerator.h" #include "FairCave.h" #include "FairParRootFileIo.h" @@ -22,6 +20,9 @@ #include #include +#if !defined(__CLING__) || defined(__ROOTCLING__) +#include + using std::cout; using std::endl; #endif diff --git a/fairtools/MCConfigurator/FairYamlVMCConfig.cxx b/fairtools/MCConfigurator/FairYamlVMCConfig.cxx index 0011b6a139..3e045ca17b 100644 --- a/fairtools/MCConfigurator/FairYamlVMCConfig.cxx +++ b/fairtools/MCConfigurator/FairYamlVMCConfig.cxx @@ -69,7 +69,7 @@ void FairYamlVMCConfig::SetupPostInit(const char* mcEngine) if (!((strcmp(mcEngine, "TGeant4") == 0))) { LOG(fatal) << "FairYamlVMCConfig::SetupPostInit() only valid for TGeant4."; } - LOG(info) << "Loading Geant4 PostInit Config." << endl; + LOG(info) << "Loading Geant4 PostInit Config."; TString work = getenv("VMCWORKDIR"); TString work_config = work + "/gconfig/";