diff --git a/Modules/Wrappers/SWIG/src/python/StandaloneWrapper.in b/Modules/Wrappers/SWIG/src/python/StandaloneWrapper.in
index 9a657eabcddda9383b676c4dc98772d694a40e4b..a0b9e362917c8aa87c0552b3e8076bad27006385 100644
--- a/Modules/Wrappers/SWIG/src/python/StandaloneWrapper.in
+++ b/Modules/Wrappers/SWIG/src/python/StandaloneWrapper.in
@@ -21,6 +21,10 @@
 cmake_minimum_required(VERSION 3.10.1)
 project(OTBPythonWrappers)
 
+if(POLICY CMP0072)
+  cmake_policy(SET CMP0072 NEW)
+endif()
+
 get_filename_component(PKG_PREFIX "${CMAKE_CURRENT_SOURCE_DIR}" PATH)
 get_filename_component(PKG_PREFIX "${PKG_PREFIX}" PATH)
 get_filename_component(PKG_PREFIX "${PKG_PREFIX}" PATH)
diff --git a/Packaging/Files/build_wrapping.cmake b/Packaging/Files/build_wrapping.cmake
index 3b1f28dd15d5c94d618d3f8f7d09f1c7e4f2a2a2..45036d00e7d1eb28b086a89913cd22bea61cc45e 100644
--- a/Packaging/Files/build_wrapping.cmake
+++ b/Packaging/Files/build_wrapping.cmake
@@ -22,6 +22,7 @@ get_filename_component(PKG_PREFIX "${CTEST_SCRIPT_DIRECTORY}" PATH)
 get_filename_component(PKG_PREFIX "${PKG_PREFIX}" PATH)
 get_filename_component(PKG_PREFIX "${PKG_PREFIX}" PATH)
 
+set(CTEST_PROJECT_NAME OTBPythonWrappers)
 set(CTEST_SOURCE_DIRECTORY ${CTEST_SCRIPT_DIRECTORY})
 set(CTEST_BINARY_DIRECTORY ${CTEST_SCRIPT_DIRECTORY}/build)
 if(WIN32)