summaryrefslogtreecommitdiffstats
path: root/Source/cmFLTKWrapUICommand.cxx
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2005-07-29 18:17:24 (GMT)
committerKen Martin <ken.martin@kitware.com>2005-07-29 18:17:24 (GMT)
commit76bd11581387050259de26f192f4a2bc9a10499a (patch)
tree4b32e4d3f1f46ae9eff25a9dea64d235c6bb34d8 /Source/cmFLTKWrapUICommand.cxx
parent76e14b4f1a53e295613593a8c731d39db2617c1a (diff)
downloadCMake-76bd11581387050259de26f192f4a2bc9a10499a.zip
CMake-76bd11581387050259de26f192f4a2bc9a10499a.tar.gz
CMake-76bd11581387050259de26f192f4a2bc9a10499a.tar.bz2
ENH; better warning message and fix type per julien
Diffstat (limited to 'Source/cmFLTKWrapUICommand.cxx')
-rw-r--r--Source/cmFLTKWrapUICommand.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/Source/cmFLTKWrapUICommand.cxx b/Source/cmFLTKWrapUICommand.cxx
index 73e1d72..a57d588 100644
--- a/Source/cmFLTKWrapUICommand.cxx
+++ b/Source/cmFLTKWrapUICommand.cxx
@@ -133,7 +133,10 @@ void cmFLTKWrapUICommand::FinalPass()
}
if (!found)
{
- cmSystemTools::Message("In CMake 2.2 the FLT_WRAP_UI command sets a variable to the list of source files that should be added to your executable or library. It appears that you have not added these source files to your target. You should change your CMakeLists.txt file to directly add the generated files to the target. For example FTLK_WRAP_UI(foo src1 src2 src3) will create a variable named foo_FLTK_UI_SRCS that contains the list of sources to add to your target when you call ADD_LIBRARY or ADD_EXECUTABLE. For now CMake 2.2 will add the sources to your target for you as was done in CMake 2.0 and earlier. In the future this may become an error.","Warning");
+ std::string msg = "In CMake 2.2 the FLTK_WRAP_UI command sets a variable to the list of source files that should be added to your executable or library. It appears that you have not added these source files to your target. You should change your CMakeLists.txt file to directly add the generated files to the target. For example FTLK_WRAP_UI(foo src1 src2 src3) will create a variable named foo_FLTK_UI_SRCS that contains the list of sources to add to your target when you call ADD_LIBRARY or ADD_EXECUTABLE. For now CMake 2.2 will add the sources to your target for you as was done in CMake 2.0 and earlier. In the future this may become an error. ";
+ msg += "The problem was found while processing the source directory: ";
+ msg += m_Makefile->GetStartDirectory();
+ cmSystemTools::Message(msg.c_str(),"Warning");
// first we add the rules for all the .fl to .h and .cxx files
size_t lastHeadersClass = m_GeneratedSourcesClasses.size();