diff --git a/bindings/pyroot/cppyy/CPyCppyy/CMakeLists.txt b/bindings/pyroot/cppyy/CPyCppyy/CMakeLists.txt index bb48c0329748b..065a89348ff4a 100644 --- a/bindings/pyroot/cppyy/CPyCppyy/CMakeLists.txt +++ b/bindings/pyroot/cppyy/CPyCppyy/CMakeLists.txt @@ -73,7 +73,7 @@ endif() add_library(cppyy SHARED src/CPyCppyyPyModule.cxx) # Set the suffix to '.so' and the prefix to 'lib' -set_target_properties(cppyy PROPERTIES ${ROOT_LIBRARY_PROPERTIES} +set_target_properties(cppyy PROPERTIES ${ROOT_LIBRARY_PROPERTIES_NO_VERSION} LIBRARY_OUTPUT_DIRECTORY ${localruntimedir}/cppyy) if(MSVC) target_link_libraries(cppyy PRIVATE CPyCppyy) diff --git a/bindings/pyroot/cppyy/cppyy/CMakeLists.txt b/bindings/pyroot/cppyy/cppyy/CMakeLists.txt index 3a29b4525f736..842ad12df97ed 100644 --- a/bindings/pyroot/cppyy/cppyy/CMakeLists.txt +++ b/bindings/pyroot/cppyy/cppyy/CMakeLists.txt @@ -31,8 +31,9 @@ endforeach() # Install Python sources and bytecode install(DIRECTORY ${localruntimedir}/cppyy DESTINATION ${CMAKE_INSTALL_PYTHONDIR} - COMPONENT libraries) + COMPONENT libraries + PATTERN *.so EXCLUDE) if(NOT MSVC) ROOT_ADD_TEST_SUBDIRECTORY(test) -endif() \ No newline at end of file +endif() diff --git a/bindings/pyroot/pythonizations/CMakeLists.txt b/bindings/pyroot/pythonizations/CMakeLists.txt index 1230f18ca47f8..b415ba13697d6 100644 --- a/bindings/pyroot/pythonizations/CMakeLists.txt +++ b/bindings/pyroot/pythonizations/CMakeLists.txt @@ -239,7 +239,8 @@ install(TARGETS ${libname} EXPORT ${CMAKE_PROJECT_NAME}Exports # Install Python sources and bytecode install(DIRECTORY ${localruntimedir}/ROOT DESTINATION ${CMAKE_INSTALL_PYTHONDIR} - COMPONENT libraries) + COMPONENT libraries + PATTERN *.so EXCLUDE) # Install headers required by pythonizations install(FILES ${PYROOT_EXTRA_HEADERS}