[CMake] CMake cannot build a simple example on one of our
computers
Marcus
yhadin002 at sneakemail.com
Thu Dec 6 09:42:51 EST 2007
>> Can you suggest any further experiments?
>> Do you have any idea what the problem could be?
>>
> Can you try this:
>
> edit cmCoreTryCompile.cxx around line 216 and add the // ADD line:
>
> fprintf(fout, " ${COMPILE_DEFINITIONS}\")\n");
> fprintf(fout, "INCLUDE_DIRECTORIES(${INCLUDE_DIRECTORIES})\n");
> fprintf(fout, "SET(CMAKE_SUPPRESS_REGENERATION 1)\n"); // *** ADD
> fprintf(fout, "LINK_DIRECTORIES(${LINK_DIRECTORIES})\n");
>
It works! Now it correctly configures and generates the Visual Studio
Solution.
It is working for our main project as well as the example.
Thanks Bill!
More information about the CMake
mailing list