diff --git a/src/python/PyImathNumpy/CMakeLists.txt b/src/python/PyImathNumpy/CMakeLists.txt index 9871a172..f1fb9e57 100644 --- a/src/python/PyImathNumpy/CMakeLists.txt +++ b/src/python/PyImathNumpy/CMakeLists.txt @@ -23,7 +23,7 @@ if(TARGET Python2::Python AND DEBUG_POSTFIX "" ) install(TARGETS imathnumpy_python2 - DESTINATION "${CMAKE_INSTALL_LIBDIR}/python${Python2_VERSION_MAJOR}.${Python2_VERSION_MINOR}/site-packages" + DESTINATION "${CMAKE_INSTALL_LIBDIR}/python${Python2_VERSION_MAJOR}.${Python2_VERSION_MINOR}/site-packages/Imath" ) endif() @@ -51,6 +51,6 @@ if(TARGET Python3::Python AND DEBUG_POSTFIX "" ) install(TARGETS imathnumpy_python3 - DESTINATION "${CMAKE_INSTALL_LIBDIR}/python${Python3_VERSION_MAJOR}.${Python3_VERSION_MINOR}/site-packages" + DESTINATION "${CMAKE_INSTALL_LIBDIR}/python${Python3_VERSION_MAJOR}.${Python3_VERSION_MINOR}/site-packages/Imath" ) endif() diff --git a/src/python/config/ModuleDefine.cmake b/src/python/config/ModuleDefine.cmake index 1039f919..9a6ecd47 100644 --- a/src/python/config/ModuleDefine.cmake +++ b/src/python/config/ModuleDefine.cmake @@ -156,7 +156,7 @@ function(PYIMATH_DEFINE_MODULE modname) ) install(TARGETS ${modname}_python3 EXPORT ${PROJECT_NAME} - DESTINATION "${CMAKE_INSTALL_LIBDIR}/python${Python3_VERSION_MAJOR}.${Python3_VERSION_MINOR}/site-packages" + DESTINATION "${CMAKE_INSTALL_LIBDIR}/python${Python3_VERSION_MAJOR}.${Python3_VERSION_MINOR}/site-packages/Imath" ) endif() endif()