diff --git a/dd4hep-build-static.patch b/dd4hep-build-static.patch index 24bc4c59e47..dfb3d403497 100644 --- a/dd4hep-build-static.patch +++ b/dd4hep-build-static.patch @@ -1,21 +1,22 @@ diff --git a/cmake/DD4hepBuild.cmake b/cmake/DD4hepBuild.cmake -index 1605e96..ac8e06d 100644 +index 174a22a..e2b8c3a 100644 --- a/cmake/DD4hepBuild.cmake +++ b/cmake/DD4hepBuild.cmake -@@ -1019,7 +1019,7 @@ function( dd4hep_add_library binary building ) - dd4hep_include_directories( "${pkg_incs}" ) - add_definitions ( ${pkg_defs} ) - # -- add_library ( ${binary} SHARED ${sources} ) -+ add_library ( ${binary} STATIC ${sources} ) - target_link_libraries ( ${binary} ${pkg_libs} ) - if ( "${${pkg}_VERSION}" STREQUAL "" OR "${${pkg}_SOVERSION}" STREQUAL "" ) - dd4hep_fatal ( "BAD Package versions: VERSION[${pkg}_VERSION] ${${pkg}_VERSION} SOVERSION[${pkg}_SOVERSION] ${${pkg}_SOVERSION} " ) -@@ -1030,6 +1030,7 @@ function( dd4hep_add_library binary building ) - if ( NOT ${ARG_NOINSTALL} ) - install ( TARGETS ${binary} - LIBRARY DESTINATION lib -+ ARCHIVE DESTINATION lib - RUNTIME DESTINATION bin) - endif() - set ( building_binary "ON" ) +@@ -613,7 +613,7 @@ function(dd4hep_add_plugin binary) + dd4hep_debug("|++++> USES ${ARG_USES}") + dd4hep_debug("|++++> INCLUDES ${ARG_INCLUDES}") + dd4hep_debug("|++++> DEFINITIONS ${ARG_DEFINITIONS}") +- add_library(${binary} SHARED ${SOURCES} ${ARG_GENERATED}) ++ add_library(${binary} STATIC ${SOURCES} ${ARG_GENERATED}) + target_link_libraries(${binary} PUBLIC ${ARG_USES}) + target_include_directories(${binary} PUBLIC ${ARG_INCLUDES}) + target_compile_definitions(${binary} PUBLIC ${ARG_DEFINITIONS}) +@@ -623,7 +623,7 @@ function(dd4hep_add_plugin binary) + if(CMAKE_INSTALL_LIBDIR) + set(install_destination ${CMAKE_INSTALL_LIBDIR}) + endif() +- install(TARGETS ${binary} LIBRARY DESTINATION ${install_destination}) ++ install(TARGETS ${binary} ARCHIVE DESTINATION ${install_destination}) + endif() + endfunction(dd4hep_add_plugin) + diff --git a/dd4hep.spec b/dd4hep.spec index 9e847e2eeb4..8d761960f02 100644 --- a/dd4hep.spec +++ b/dd4hep.spec @@ -1,8 +1,8 @@ ### RPM external dd4hep v01-10x -%define tag 7680c56ad011a34daacf874033a460947d548740 -%define branch cms/master/9f9459d -%define github_user cms-externals +%define tag ae82afcac3986b62049c87fe3e96e2af790f75f8 +%define branch master +%define github_user AIDASoft %define keep_archives true Source: git+https://github.com/%{github_user}/DD4hep.git?obj=%{branch}/%{tag}&export=%{n}-%{realversion}&output=/%{n}-%{realversion}.tgz diff --git a/vecgeom.spec b/vecgeom.spec index 8da7d1bc9c3..1a88b6248d3 100644 --- a/vecgeom.spec +++ b/vecgeom.spec @@ -42,6 +42,8 @@ make %{makeprocesses} %install cd ../build make %{makeprocesses} install +perl -p -i -e 's|set\(VECGEOM_EXTERNAL_INCLUDES .*|set(VECGEOM_EXTERNAL_INCLUDES "")|' \ + $(grep -R 'set(VECGEOM_EXTERNAL_INCLUDES ' %{i}/lib/cmake | sed 's|:.*||' | sort | uniq) %post %{relocateConfig}lib/cmake/USolids/*.cmake