[CMake] Duplicated messages and check for g++
Filipe Sousa
filipe at ipb.pt
Wed Sep 13 04:20:58 EDT 2006
Alan W. Irwin wrote:
> On 2006-09-13 11:33+0700 Slava Semushin wrote:
>
>> Hello!
>>
>> When I run cmake I see following messages:
>>
>> tetaneg% cmake .
>> -- Check for working C compiler: gcc
>> -- Check for working C compiler: gcc -- works
>> -- Check size of void*
>> -- Check size of void* - done
>> -- Check for working CXX compiler: c++
>> -- Check for working CXX compiler: c++ -- works
>> [skip]
>>
>> I have 2 questions:
>>
>> - Why for each check was printed 2 similar messages?
>
> That is the CMake style; at the start of a test it tells what it is going to
> do (e.g., "Check for working C compiler: gcc"), and at the end of the test
> it gives the same message followed by the positive result (e.g., "-- works")
> or the negative result (e.g., "-- broken") depending on the result of the
> test. See CMakeTestCCompiler.cmake for how this style is implemented for
> the first question above. Actually, I think it is an excellent style.
>
> Your second question about turning off the automatic C++ test for C-only
> projects, I will leave to others more knowledgable than me.
PROJECT(foo C) # c only
PROJECT(foo CXX) # c++ only
--
Filipe Sousa
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: OpenPGP digital signature
Url : http://public.kitware.com/pipermail/cmake/attachments/20060913/c15e26e7/signature.pgp
More information about the CMake
mailing list