[CMake] CMAKE 2.6.0: Wrong dependencies when CMake<LANG>Information.cmake is missing
Alexander Neundorf
a.neundorf-work at gmx.net
Sun Jun 8 18:26:35 EDT 2008
On Sunday 08 June 2008, Wojciech Migda wrote:
> Hi,
>
...
> I've prepared a patch against the 2.6.0 version. Unfortunately I could
> not find the patch format instructions for cmake, so I took those for
> linux kernel (diff -up).
>
> --- cmake-2.6.0/Source/cmGlobalGenerator.cxx.orig 2008-05-05
> 18:25:54.000000000 +0000
> +++ cmake-2.6.0/Source/cmGlobalGenerator.cxx 2008-06-08
> 15:28:43.986483015 +0000
> @@ -415,10 +415,10 @@ cmGlobalGenerator::EnableLanguage(std::v
> fpath += lang;
> fpath += "Information.cmake";
> fpath = mf->GetModulesFile(fpath.c_str());
> - if(!mf->ReadListFile(0,fpath.c_str()))
> + if(!mf->ReadListFile(0,fpath.c_str()) || fpath.empty())
> {
> cmSystemTools::Error("Could not find cmake module file:",
> - fpath.c_str());
> + "CMake", lang, "Information.cmake");
> }
> }
> if (needSetLanguageEnabledMaps[lang])
>
> The latest HEAD version 1.233 appears to have the same problem.
Thanks for the patch.
The asm support is still very new, so thanks for pointing out issues.
Can you create a small test project so I can reproduce the problem here ?
Thanks
Alex
More information about the CMake
mailing list