On Fri, Jun 25, 2010 at 08:23:06AM -0400, cmake-requ...@cmake.org wrote:
> So is there any way in cmake to enforce Visual Studio to use link.exe instead 
> of xilink.exe?

grep -i LINK /usr/share/cmake-2.8/Modules/Platform/*|less

yields a ton of link-related CMake variables during platform setup,
thus something like CMAKE_LINKER should hopefully still be tweakable
post-platform-setup and do the right thing.

For linker flags, perhaps
CMAKE_EXE_LINKER_FLAGS
CMAKE_SHARED_LINKER_FLAGS
CMAKE_MODULE_LINKER_FLAGS
would be useful (but since you primarily want to change the linker binary
perhaps you won't need these).

OTOH your issue might be the split between Fortran and C++ components,
in which case even CMAKE_LINKER might fail to help in all cases
(in that case perhaps there's a target-specific property to set
which defines the linker to use for the target).

HTH,

Andreas Mohr
_______________________________________________
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