<br><br><div class="gmail_quote">2009/5/4 Andreas Pakulat <span dir="ltr"><<a href="mailto:apaku@gmx.de">apaku@gmx.de</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">On 04.05.09 17:28:48, ankit jain wrote:<br>
> Hi all,<br>
><br>
> Actually I am porting my code on windows but since windows don't understand<br>
> the unix libraries iam using third party toolkit mks earlier to build the<br>
> code and linking all the headers and libraries of mksnt.<br>
><br>
> but now i am not using mks and directly building the code using visual<br>
> studio .net 2003. since VC++ uses cl compiler by defualt i want to change it<br>
> through cmakelist variable CMAKE_C_COMPILER and CXX variable to the compiler<br>
> used by mks i.e cxx.<br>
><br>
> But when iam doing so it is still using cl. I am not getting from where it<br>
> is taking cl complier and not changing to whatever i want.<br>
><br>
> It might feel auckward to some of you that why iam changing to mks compiler<br>
> becuase iwant to check my code whether without opening mks bash if iam<br>
> direclty using its compiler will it work or not..<br>
><br>
> I request you all to tell me how it can de done so that my VC++ takes cxx<br>
> compiler of mks toolkit rather its default cl compiler...<br>
<br>
</div>I think you can't or I'm misunderstanding what you really want to do. VC++<br>
_always_ uses cl as VC++ == cl+link basically. You might be able to get<br>
cmake to use the mks compiler by providing an environment in which cl is<br>
not available in PATH but the mks compiler.<br>
<br>
However its not quite clear wether you're already doing that (build your<br>
code with mks) and now want to build the same code with cl/VC++ or<br>
something else?<br>
</blockquote><div><br>Thanks Andreas for your reply. I already build the code using mks. now i want to build the code using cl/VC++. since it gives lots of errors of not founding fiels like strings.h unistd.h so i thought its good to link it with mks compiler and give path to the libraries and header used my mks for windows.. i hope you got it..<br>
<br>Ankit<br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
Andreas<br>
<br>
--<br>
You love your home and want it to be beautiful.<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
</blockquote></div><br>