[CMake] Supporting the Intel Compiler -- building static libraries
Blezek, Daniel J., Ph.D.
Blezek.Daniel at mayo.edu
Fri Apr 18 10:34:16 EDT 2008
Hi David, Bill,
Hmm, I must have made a mistake yesterday, I thought I started with a
clean directory. Worked fine this morning.
Would be helpful to have the Intel compiler supported out of the box.
However, I also found a flag (-ipo_obj) that allows the Intel Compiler
to play nice with ar.
-dan
-----Original Message-----
From: Bill Hoffman [mailto:bill.hoffman at kitware.com]
Sent: Friday, April 18, 2008 9:19 AM
To: David Cole
Cc: Blezek, Daniel J., Ph.D.; cmake at cmake.org
Subject: Re: [CMake] Supporting the Intel Compiler -- building static
libraries
David Cole wrote:
> This is one of those things where you have to have the setting right
> before any possible TRY_COMPILE actions in any CMakeLists files. It's
> *conceptually* equivalent to changing the compiler.
>
> What you tried by using -DCMAKE_AR should work if you start with an
> empty binary tree. (And starting with an empty binary tree is a
> reasonable thing to do when essentially everything needs to be rebuilt
> anyway.)
>
> Does that make sense?
>
This should go in the Platforms directory, in the intel compiler file.
Much like sun CC uses CC -ar to create archives.
-Bill
More information about the CMake
mailing list