I never actually saw a solution to this problem in cmake:
I need to link (independent constraint from above) with libguide.a and
not libguide.so (in intel compiler, does not matter much), but both
are available, and cmake always takes the shared one when given
"guide" as the desired library to be linked.
Is there an elegant way of static linking (other than -static passed
to the linker for static linking of everything) of this particular lib
other than hacking (like deleting the .so from the folder)?
PS. This opens up a box of other related problems, like the
(independent) need to link some parts statically on exotic HPC
systems.
Many thanks,
Dominik
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to