From a506290bf74635dca3d6f27c6b3def1dbd5e4909 Mon Sep 17 00:00:00 2001
From: Ralf Ulrich <rulrich@iklx289.ikp.kit.edu>
Date: Wed, 1 Dec 2021 14:22:27 +0100
Subject: [PATCH] old ubuntu LTS system have very old cmake

---
 modules/pythia8/CMakeLists.txt | 10 +++++-----
 modules/sibyll/CMakeLists.txt  |  1 +
 2 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/modules/pythia8/CMakeLists.txt b/modules/pythia8/CMakeLists.txt
index 84abac6f0..06edb5320 100644
--- a/modules/pythia8/CMakeLists.txt
+++ b/modules/pythia8/CMakeLists.txt
@@ -99,11 +99,11 @@ else ()
     IMPORTED_LOCATION ${Pythia8_LIBDIR}/libpythia8.a
     IMPORTED_LINK_INTERFACE_LIBRARIES dl
     )
-  target_include_directories (
-    C8::ext::pythia8 
-    INTERFACE
-    $<BUILD_INTERFACE:${Pythia8_INCLUDE_DIRS}>
-    $<INSTALL_INTERFACE:include/corsika/modules/pythia8/include> 
+  set_property (
+    TARGET C8::ext::pythia8
+    APPEND PROPERTY
+    INTERFACE_INCLUDE_DIRECTORIES $<BUILD_INTERFACE:${Pythia8_INCLUDE_DIRS}>
+                                  $<INSTALL_INTERFACE:include/corsika/modules/pythia8/include> 
     )
 
     message (STATUS "Pythia8 build at: ${Pythia8_PREFIX}, final install to: ${Pythia8_PREFIX_INSTALL}")
diff --git a/modules/sibyll/CMakeLists.txt b/modules/sibyll/CMakeLists.txt
index 21e45060d..ba01aff36 100644
--- a/modules/sibyll/CMakeLists.txt
+++ b/modules/sibyll/CMakeLists.txt
@@ -57,6 +57,7 @@ install (
   TARGETS Sibyll_static Sibyll
   EXPORT CORSIKA8PublicTargets
   ARCHIVE DESTINATION lib/corsika
+  LIBRARY DESTINATION lib/corsika # just for cmake 3.10.x (ubuntu 18)
   )
 
 # add sibyll to corsika8 build
-- 
GitLab