diff --git a/src/python/PyImathNumpy/CMakeLists.txt b/src/python/PyImathNumpy/CMakeLists.txt index 56f0804a..9871a172 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_BINDIR}/python${Python2_VERSION_MAJOR}.${Python2_VERSION_MINOR}/site-packages" + DESTINATION "${CMAKE_INSTALL_LIBDIR}/python${Python2_VERSION_MAJOR}.${Python2_VERSION_MINOR}/site-packages" ) endif() @@ -51,6 +51,6 @@ if(TARGET Python3::Python AND DEBUG_POSTFIX "" ) install(TARGETS imathnumpy_python3 - DESTINATION "${CMAKE_INSTALL_BINDIR}/python${Python3_VERSION_MAJOR}.${Python3_VERSION_MINOR}/site-packages" + DESTINATION "${CMAKE_INSTALL_LIBDIR}/python${Python3_VERSION_MAJOR}.${Python3_VERSION_MINOR}/site-packages" ) endif() diff --git a/src/python/config/ModuleDefine.cmake b/src/python/config/ModuleDefine.cmake index 41cb7ea6..1039f919 100644 --- a/src/python/config/ModuleDefine.cmake +++ b/src/python/config/ModuleDefine.cmake @@ -126,7 +126,7 @@ function(PYIMATH_DEFINE_MODULE modname) ) install(TARGETS ${modname}_python2 EXPORT ${PROJECT_NAME} - DESTINATION "${CMAKE_INSTALL_BINDIR}/python${Python2_VERSION_MAJOR}.${Python2_VERSION_MINOR}/site-packages" + DESTINATION "${CMAKE_INSTALL_LIBDIR}/python${Python2_VERSION_MAJOR}.${Python2_VERSION_MINOR}/site-packages" ) endif() else() @@ -156,7 +156,7 @@ function(PYIMATH_DEFINE_MODULE modname) ) install(TARGETS ${modname}_python3 EXPORT ${PROJECT_NAME} - DESTINATION "${CMAKE_INSTALL_BINDIR}/python${Python3_VERSION_MAJOR}.${Python3_VERSION_MINOR}/site-packages" + DESTINATION "${CMAKE_INSTALL_LIBDIR}/python${Python3_VERSION_MAJOR}.${Python3_VERSION_MINOR}/site-packages" ) endif() endif()