[CMake] CMAKE_FORCE_CXX_COMPILER question

Ryan Pavlik rpavlik at iastate.edu
Thu Feb 18 12:00:06 EST 2010


On 2/18/10 9:41 AM, Buonopane, Robert wrote:
>
> Hi:
>
> Running CMAKE 2.6
>
> In my project level CMakeList.txt file I have:
>
>    INCLUDE (CMakeForceCompiler)
>
>    CMAKE_FORCE_CXX_COMPILER(g++ GNU)
>
> When I build on my Linux platform it compiles and links with g++ which 
> is what I want.
>
> When I build on my Solaris10 platform it compiles with g++ BUT links 
> with gcc.
>
> Is this a bug?
>
> Are my expectations wrong?
>
> Thanks
>
> bob
>

There is a separate setting to force which linker to use.
set_target_properties(targetname PROPERTIES HAS_CXX yes)

Ryan

-- 
Ryan Pavlik
Human-Computer Interaction Graduate Student
Virtual Reality Applications Center
Iowa State University

rpavlik at iastate.edu
http://academic.cleardefinition.com/

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20100218/2a3a57e2/attachment.htm>


More information about the CMake mailing list