[CMake] ExternalProject BUILD_COMMAND and Visual Studio Express 2010
Magnus Therning
magnus at therning.org
Sat Nov 23 16:40:25 EST 2013
On Sat, Nov 23, 2013 at 08:54:24AM -0700, Macumber, Daniel wrote:
> Thanks Magnus, is there a reliable way to get the path to
> vcvarsall.bat that will work for various versions of Visual Studio
> (express or not)?
I don't know of any sure way of doing that, but if vcvarsall.bat is
located in the same relative place across all versions of VS then it
might be possible to sort of misuse some variable that CMake sets.
I had a quick look in one project I build with VS2010 and found one
candidate variable: CMAKE_LINKER.
CMAKE_LINKER = C:/Program Files (x86)/Microsoft Visual Studio 10.0/VC/bin/link.exe
vcvarsall.bat location = C:/Program Files (x86)/Microsoft Visual Studio 10.0/VC/vcvarsall.bat
I'd consider that a terrible hack though, so hopefully there's someone
else with a better idea.
/M
--
Magnus Therning OpenPGP: 0xAB4DFBA4
email: magnus at therning.org jabber: magnus at therning.org
twitter: magthe http://therning.org/magnus
Beauty is more important in computing than anywhere else in technology
because software is so complicated. Beauty is the ultimate defence
against complexity.
-- David Gelernter
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://www.cmake.org/pipermail/cmake/attachments/20131123/aea8f2ac/attachment.pgp>
More information about the CMake
mailing list