--- mapscript/python/CMakeLists.txt.orig	2023-05-31 15:58:37.000000000 +0200
+++ mapscript/python/CMakeLists.txt	2023-06-01 10:59:57.000000000 +0200
@@ -126,7 +126,7 @@
     endif()
   
     if(DEFINED CMAKE_INSTALL_PREFIX)
-      SET(PYTHON_PREFIX \"--prefix=\${CMAKE_INSTALL_PREFIX}\")
+      SET(PYTHON_PREFIX \"--prefix=@PYTHONFRW@\")
     endif()
 
     execute_process(
