Author: Gregor Riepl <onitake@gmail.com>
Description: Install to correct site-packages dir, based on Python version.
 This is required, because SIP packages need to be compiled and installed
 for every Python version separately.

--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -16,6 +16,8 @@ find_package(NLopt REQUIRED)  # Dependen
 find_package(Boost REQUIRED)  # Dependency of libnest2d.
 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DLIBNEST2D_GEOMETRIES_clipper -DLIBNEST2D_OPTIMIZERS_nlopt -DLIBNEST2D_THREADING_std")  # Tell libnest2d to use Clipper and NLopt, and standard threads.
 
+set(Python3_SITEARCH lib${LIB_SUFFIX}/python${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}/site-packages CACHE STRING "Directory to install Python bindings to")
+
 # Some build options.
 set(CMAKE_CXX_STANDARD 11)
 if(APPLE AND CMAKE_CXX_COMPILER_ID MATCHES "Clang")
