diff --git a/Source/cmQTWrapUICommand.cxx b/Source/cmQTWrapUICommand.cxx index 938c15814..6a6d902a2 100644 --- a/Source/cmQTWrapUICommand.cxx +++ b/Source/cmQTWrapUICommand.cxx @@ -101,16 +101,16 @@ bool cmQTWrapUICommand::InitialPass(std::vector const& argsIn) { headerListValue += ";"; } - headerListValue += header_file.GetSourceName() + ".h"; + headerListValue += header_file.GetFullPath(); // create the list of sources if (sourceListValue.size() > 0) { sourceListValue += ";"; } - sourceListValue += source_file.GetSourceName() + ".cxx"; + sourceListValue += source_file.GetFullPath(); sourceListValue += ";"; - sourceListValue += moc_file.GetSourceName() + ".cxx"; + sourceListValue += moc_file.GetFullPath(); } }