[CMake] project (name NONE) still search for a valid compiler

David Cole david.cole at kitware.com
Tue Mar 30 11:07:01 EDT 2010


Other PROJECT commands or ENABLE_LANGUAGE calls are the things that would
trigger the checks for compilers...


On Tue, Mar 30, 2010 at 10:58 AM, Benoit Thomas
<benoit.thomas at gameloft.com>wrote:

>  I'm using version 2.8.0
>
> Indeed, when I'm doing a small test project, everything works perfectly.
> But in my real project, it doesn't so I guess I'm doing something wrong
> somewhere. I'll try to isolate the code which cause this problem.
>
> Thanks for the help,
> Ben.
>
>
> On 2010-03-30 10:05, David Cole wrote:
>
> What is the output, if you have a CMakeLists.txt file with this content:
> project(xyz NONE)
>
>  And then run this command in the same dir with the CMakeLists file:
> mkdir build && cd build && cmake --version && cmake .. && cd ..
>
>  Mine is:
> cmake version 2.8.1
>  -- Configuring done
> -- Generating done
> -- Build files have been written to: /Users/davidcole/Desktop/xyz/build
>
>  You are correct: using "NONE" in the project statement should (and does
> for me) prevent the "compiler works" testing.
>
>
>  HTH,
> David
>
>
>   On Tue, Mar 30, 2010 at 9:54 AM, Benoit Thomas <
> benoit.thomas at gameloft.com> wrote:
>
>> Hello,
>>
>> I'm trying to prevent cmake for looking for a valid compiler (since it
>> currently doesn't find the appropriate compiler and we use cmake to generate
>> visual studio solutions).
>>
>> I've tried using project (name NONE) but it doesn't seems to work; I also
>> tried other combination like project (name JAVA), etc, but it always search
>> for a C and C++ compiler.
>>
>> Is there any other way to diasble cmake for looking for a valid compiler ?
>>
>> Thank you,
>> Ben.
>>
>> _______________________________________________
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>>
>> Please keep messages on-topic and check the CMake FAQ at:
>> http://www.cmake.org/Wiki/CMake_FAQ
>>
>> Follow this link to subscribe/unsubscribe:
>> http://www.cmake.org/mailman/listinfo/cmake
>>
>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the CMake FAQ at:
> http://www.cmake.org/Wiki/CMake_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.cmake.org/mailman/listinfo/cmake
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20100330/1e9df9a9/attachment.htm>


More information about the CMake mailing list