[CMake] Supporting the Intel Compiler -- building static libraries
Bill Hoffman
bill.hoffman at kitware.com
Fri Apr 18 10:18:48 EDT 2008
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