[CMake] Separate the compiler used for compile versus link
Bill O'Hara
billtohara at gmail.com
Thu Feb 12 13:47:09 EST 2009
Right now I have a legacy makefile which does the equivalent of
gcc -c foo.c
g++ -o foo foo.o -lasdf -lqwer
Because asdf and qwer are static libraries from c++ sources.
Is there a straightforward way to do something like
add_executable(foo foo.c)
target_link_libraries(foo asdf qwer)
in this case and have g++ used for final compilation step?
thanks
b.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20090212/80e79968/attachment.htm>
More information about the CMake
mailing list