From 61f14162d81e896c133198b87dad0f619f4de569 Mon Sep 17 00:00:00 2001 From: Larry Gritz Date: Fri, 10 May 2024 21:00:48 -0700 Subject: [PATCH] Fix destination, should have gone under lib, not bin Signed-off-by: Larry Gritz --- src/python/PyImathNumpy/CMakeLists.txt | 4 ++-- src/python/config/ModuleDefine.cmake | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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()