IAP GITLAB

Skip to content
Snippets Groups Projects
Commit 92b43fbf authored by Ralf Ulrich's avatar Ralf Ulrich
Browse files

Merge branch '169-compilation-fails-on-appleclang-and-gcc-8' into 'master'

Resolve "Compilation fails on AppleClang and gcc-8"

Closes #169

See merge request AirShowerPhysics/corsika!103
parents 77c612e2 f92be551
No related branches found
No related tags found
No related merge requests found
...@@ -22,27 +22,29 @@ target_link_libraries (stack_example SuperStupidStack CORSIKAunits ...@@ -22,27 +22,29 @@ target_link_libraries (stack_example SuperStupidStack CORSIKAunits
CORSIKAlogging) CORSIKAlogging)
CORSIKA_ADD_TEST (stack_example) CORSIKA_ADD_TEST (stack_example)
add_executable (cascade_example cascade_example.cc) if (Pythia8_FOUND)
target_compile_options(cascade_example PRIVATE -g) # do not skip asserts add_executable (cascade_example cascade_example.cc)
target_link_libraries (cascade_example SuperStupidStack CORSIKAunits target_compile_options(cascade_example PRIVATE -g) # do not skip asserts
CORSIKAlogging target_link_libraries (cascade_example SuperStupidStack CORSIKAunits
CORSIKArandom CORSIKAlogging
ProcessSibyll CORSIKArandom
ProcessPythia ProcessSibyll
CORSIKAcascade ProcessPythia
ProcessEnergyLoss CORSIKAcascade
ProcessStackInspector ProcessEnergyLoss
ProcessTrackWriter ProcessStackInspector
ProcessTrackingLine ProcessTrackWriter
CORSIKAprocesses ProcessTrackingLine
CORSIKAcascade CORSIKAprocesses
CORSIKAparticles CORSIKAcascade
CORSIKAgeometry CORSIKAparticles
CORSIKAenvironment CORSIKAgeometry
CORSIKAprocesssequence CORSIKAenvironment
) CORSIKAprocesssequence
install (TARGETS cascade_example DESTINATION share/examples) )
CORSIKA_ADD_TEST (cascade_example) install (TARGETS cascade_example DESTINATION share/examples)
CORSIKA_ADD_TEST (cascade_example)
endif()
add_executable (boundary_example boundary_example.cc) add_executable (boundary_example boundary_example.cc)
target_compile_options(boundary_example PRIVATE -g) # do not skip asserts target_compile_options(boundary_example PRIVATE -g) # do not skip asserts
...@@ -62,50 +64,54 @@ target_link_libraries (boundary_example SuperStupidStack CORSIKAunits CORSIKAlog ...@@ -62,50 +64,54 @@ target_link_libraries (boundary_example SuperStupidStack CORSIKAunits CORSIKAlog
install (TARGETS boundary_example DESTINATION share/examples) install (TARGETS boundary_example DESTINATION share/examples)
CORSIKA_ADD_TEST (boundary_example) CORSIKA_ADD_TEST (boundary_example)
add_executable (cascade_proton_example cascade_proton_example.cc) if (Pythia8_FOUND)
target_compile_options(cascade_proton_example PRIVATE -g) # do not skip asserts add_executable (cascade_proton_example cascade_proton_example.cc)
target_link_libraries (cascade_proton_example SuperStupidStack CORSIKAunits target_compile_options(cascade_proton_example PRIVATE -g) # do not skip asserts
CORSIKAlogging target_link_libraries (cascade_proton_example SuperStupidStack CORSIKAunits
CORSIKArandom CORSIKAlogging
ProcessSibyll CORSIKArandom
ProcessPythia ProcessSibyll
CORSIKAcascade ProcessPythia
ProcessEnergyLoss CORSIKAcascade
ProcessTrackWriter ProcessEnergyLoss
ProcessTrackingLine ProcessTrackWriter
ProcessHadronicElasticModel ProcessTrackingLine
CORSIKAprocesses ProcessHadronicElasticModel
CORSIKAcascade CORSIKAprocesses
CORSIKAparticles CORSIKAcascade
CORSIKAgeometry CORSIKAparticles
CORSIKAenvironment CORSIKAgeometry
CORSIKAprocesssequence CORSIKAenvironment
) CORSIKAprocesssequence
)
install (TARGETS cascade_proton_example DESTINATION share/examples) install (TARGETS cascade_proton_example DESTINATION share/examples)
CORSIKA_ADD_TEST (cascade_proton_example) CORSIKA_ADD_TEST (cascade_proton_example)
endif()
add_executable (vertical_EAS vertical_EAS.cc) if (Pythia8_FOUND)
target_compile_options(vertical_EAS PRIVATE -g) # do not skip asserts add_executable (vertical_EAS vertical_EAS.cc)
target_link_libraries (vertical_EAS SuperStupidStack CORSIKAunits target_compile_options(vertical_EAS PRIVATE -g) # do not skip asserts
CORSIKAlogging target_link_libraries (vertical_EAS SuperStupidStack CORSIKAunits
CORSIKArandom CORSIKAlogging
ProcessSibyll CORSIKArandom
ProcessPythia ProcessSibyll
CORSIKAcascade ProcessPythia
ProcessEnergyLoss CORSIKAcascade
ProcessTrackWriter ProcessEnergyLoss
ProcessTrackingLine ProcessTrackWriter
ProcessHadronicElasticModel ProcessTrackingLine
CORSIKAprocesses ProcessHadronicElasticModel
CORSIKAcascade CORSIKAprocesses
CORSIKAparticles CORSIKAcascade
CORSIKAgeometry CORSIKAparticles
CORSIKAenvironment CORSIKAgeometry
CORSIKAprocesssequence CORSIKAenvironment
) CORSIKAprocesssequence
install (TARGETS vertical_EAS DESTINATION share/examples) )
# CORSIKA_ADD_TEST (vertical_EAS) not yet... install (TARGETS vertical_EAS DESTINATION share/examples)
# CORSIKA_ADD_TEST (vertical_EAS) not yet...
endif()
add_executable (staticsequence_example staticsequence_example.cc) add_executable (staticsequence_example staticsequence_example.cc)
target_compile_options(staticsequence_example PRIVATE -g) # do not skip asserts target_compile_options(staticsequence_example PRIVATE -g) # do not skip asserts
......
...@@ -333,7 +333,7 @@ using StackTest2 = CombinedStack<typename StackTest::StackImpl, TestStackData3, ...@@ -333,7 +333,7 @@ using StackTest2 = CombinedStack<typename StackTest::StackImpl, TestStackData3,
CombinedTestInterfaceType2>; CombinedTestInterfaceType2>;
#if defined(__clang__) #if defined(__clang__)
using StackTestView = SecondaryView<TestStackData, TestParticleInterface>; using StackTestView = SecondaryView<typename StackTest2::StackImpl, CombinedTestInterfaceType2>;
#elif defined(__GNUC__) || defined(__GNUG__) #elif defined(__GNUC__) || defined(__GNUG__)
using StackTestView = corsika::stack::MakeView<StackTest2>::type; using StackTestView = corsika::stack::MakeView<StackTest2>::type;
#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