[CMake] [Temproraly Solution , may be bug in cmake] Re: cmake error in windows 7 , visual studio 2008

Ramazan Girgin ramazangirgin at gmail.com
Fri Mar 19 10:27:09 EDT 2010


I insert
SET(CMAKE_CXX_COMPILER_WORKS 1) in CMakeTestCXXCompiler.cmake file
and
SET(CMAKE_C_COMPILER_WORKS 1) in CMakeTestCCompiler.cmake file

for disable testing of compiler.

After that cmake generated make file correctly and i compiled may
application.
Another temp solution may be put this lines int to CMakeLists.txt file.
But this is temp solution.
May be any bug in cmake ?

I found something about cl.exe gives errors like this if more than one cpu
in computer.It may be related to this. I have 4 core cpu too.
http://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/b1d1bceb-06b6-47ef-a0ea-23ea752e0c4f



<http://trac-hg.assembla.com/CMakeLua/browser/Modules/CMakeTestCXXCompiler.cmake?rev=313%3Aa5cad95a641e>
On Thu, Mar 18, 2010 at 8:48 PM, Ramazan Girgin <ramazangirgin at gmail.com>wrote:

> i work in my local computer.
> I can compile with visual studio2008. I give all permissions to user as
> administrator and disabled dep in window7
>
>
> On Thu, Mar 18, 2010 at 5:52 PM, Bill Hoffman <bill.hoffman at kitware.com>wrote:
>
>> Ramazan Girgin wrote:
>>
>>> Hi all,
>>> I want to compile 32bit app in 64 bit windows 7.
>>>
>>> I can compile with vs2008 but
>>> when i try to configures for compile with cmake it gives. i use cmake 2.8
>>> How can i solve that error ?
>>>
>>
>>   C:\Users\ramazan.girgin\Desktop\ma3BuildManager\New
>>>  folder\CMakeFiles\CMakeTmp\testCCompiler.c : fatal error C1033: cannot
>>> open
>>>  program database ''
>>>   NMAKE : fatal error U1077: 'C:\PROGRA~2\MICROS~1.0\VC\bin\cl.exe' :
>>> return
>>>  code '0x2'
>>>
>>>
>>
>> I this I have seen this.... :)
>>
>> Are you ssh'ing into the windows box with cygwin sshd?  The problem is a
>> permission thing.   Can you compile a program without cmake on the command
>> line that has debug info?
>>
>> -Bill
>>
>
>
>
> --
> Ramazan Girgin
>



-- 
Ramazan Girgin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20100319/dbb756c5/attachment.htm>


More information about the CMake mailing list