Skip to content

Commit

Permalink
fixes for problems on linux
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasRuf committed Oct 13, 2015
1 parent e72dc58 commit b40e395
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion genfit/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ ENDIF(NOT CMAKE_BUILD_TYPE)

include(CheckCXXCompilerFlag)
# ROOT 6 requires c++11 support, enforced via headers
If (ROOT_FOUND_VERSION LESS 59999)
If (ROOT_FOUND_VERSION LESS 59999 OR NOT ROOT_FOUND_VERSION)
check_cxx_compiler_flag(-std=c++03 HAS_STD_FLAG)
check_cxx_compiler_flag(--std=c++03 HAS_STD_FLAG_ALTERNATIVE)
if (HAS_STD_FLAG)
Expand All @@ -90,6 +90,7 @@ If (ROOT_FOUND_VERSION LESS 59999)
message("Neither --std=c++03 nor -std=c++03 seem to work. Moving on.")
endif()
else()
message("setup for ROOT6 ${ROOT_FOUND_VERSION}")
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
EndIf()

Expand Down
2 changes: 1 addition & 1 deletion shipgen/GenLinkDef.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
#pragma link C++ class MuDISGenerator+;
#pragma link C++ class NuageGenerator+;

/*
#pragma link C++ class Pythia8::Pythia+;
#pragma link C++ class Pythia8::Event+;
#pragma link C++ class Pythia8::Info+;
Expand All @@ -34,7 +35,6 @@
#pragma link C++ class Pythia8::LHArwgt+;
#pragma link C++ class Pythia8::SusyLesHouches+;
//#pragma link C++ class Pythia8::CoupSUSY+; // does not compile
/*
#pragma link C++ class Pythia8::Junction+;
#pragma link C++ class Pythia8::Vec4+;
#pragma link C++ class Pythia8::InBeam+;
Expand Down

0 comments on commit b40e395

Please sign in to comment.