CPackRPM does not create RPM in case CPACK_RPM_USER_BINARY_SPECFILE is set
When CPACK_RPM_USER_BINARY_SPECFILE is set the RPMBUILD_FLAGS is not set in CPackRPM.cmake. Hence no RPM is created when the rpmbuild command is executed. Installed version is 3.7.0