[CMake] CMAKE_FORCE_CXX_COMPILER question

Buonopane, Robert Robert_Buonopane at bmc.com
Thu Feb 18 12:14:42 EST 2010


I have:
set_target_properties(
    daalplugincontainer
    PROPERTIES
       VERSION 2.5
#       SOVERSION 1
       HAS_CXX yes
)

But Solaris10 still uses the default gcc instead of the g++ that I want.
Any other thoughts on this?

Thanks
Bob

From: cmake-bounces at cmake.org [mailto:cmake-bounces at cmake.org] On Behalf Of Ryan Pavlik
Sent: Thursday, February 18, 2010 12:00 PM
To: cmake at cmake.org
Subject: Re: [CMake] CMAKE_FORCE_CXX_COMPILER question

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<mailto:rpavlik at iastate.edu>

http://academic.cleardefinition.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20100218/d335621d/attachment.htm>


More information about the CMake mailing list