diff --git a/modules/pythia8/CMakeLists.txt b/modules/pythia8/CMakeLists.txt index 84abac6f004310585d500f9842ec31a49f648e5d..06edb532098c0d54e8c48e48793b63e4b29ab781 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 21e45060dbf71e4cb71a9a6c4fbdac21d1d34098..ba01aff360a7296af2822f1706604106e1105ee5 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