[CMake] compiling for static/shared simultaneously?
Eric Noulard
eric.noulard at gmail.com
Tue Mar 20 04:36:16 EST 2007
2007/3/19, Philip Lowman <philip at yhbt.com>:
> I noticed when using ADD_LIBRARY to compile both static and shared
> simultaneously that CMake will compile the source code twice once with
> -fPIC (for shared build) and once without.
[...]
>
> Is this even possible to do within CMakeLists.txt files without making
> source code modifications?
>
You should browse ML archive for this subject:
http://www.cmake.org/pipermail/cmake/2007-March/013052.html
http://www.cmake.org/pipermail/cmake/2007-March/013143.html
And the FAQ too:
http://www.cmake.org/Wiki/CMake_FAQ#Library_questions
--
Erk
More information about the CMake
mailing list