On 2008-10-27 12:54-0500 George Neill wrote:

Hi All,

I am using cmake 2.4.8 and Sun Studio 12.

I am trying to overwrite these default cmake compiler settings from
Modules/Platorm/SunOS.cmake

 SET(CMAKE_SHARED_LIBRARY_C_FLAGS "-KPIC")
 SET(CMAKE_SHARED_LIBRARY_CXX_FLAGS "-KPIC")

to

 SET(CMAKE_SHARED_LIBRARY_C_FLAGS "-xcode=pic32")
 SET(CMAKE_SHARED_LIBRARY_CXX_FLAGS "-xcode=pic32")

However I am not having any luck.

{...]
Any suggestions?

The brute-force but completely reliable method is to
set your desired compilers and associated flags before running cmake, e.g.,

export CC='cc -xcode=pic32'
export CXX='c++ -xcode=pic32'

Alan
__________________________
Alan W. Irwin

Astronomical research affiliation with Department of Physics and Astronomy,
University of Victoria (astrowww.phys.uvic.ca).

Programming affiliations with the FreeEOS equation-of-state implementation
for stellar interiors (freeeos.sf.net); PLplot scientific plotting software
package (plplot.org); the libLASi project (unifont.org/lasi); the Loads of
Linux Links project (loll.sf.net); and the Linux Brochure Project
(lbproject.sf.net).
__________________________

Linux-powered Science
__________________________
_______________________________________________
CMake mailing list
[email protected]
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to