Skip to content

Commit

Permalink
Fix destination, should have gone under lib, not bin
Browse files Browse the repository at this point in the history
Signed-off-by: Larry Gritz <lg@larrygritz.com>
  • Loading branch information
lgritz committed May 11, 2024
1 parent 43ddfee commit 61f1416
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/python/PyImathNumpy/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down Expand Up @@ -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()
4 changes: 2 additions & 2 deletions src/python/config/ModuleDefine.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit 61f1416

Please sign in to comment.