During the 12.4 Sunset pre/post target was removed but CMAKE_BUILD_TYPE is used in post-install target which can be used only with pre stage. Approved by: portmgr (just-fix-it)