Niels Dekker - address until 2018
2014-05-08 20:44:22 UTC
We need to find a file named "vcvarsall.bat", located in the
installation directory of Visual C++, which may have one of the
following path names, for example:
"C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\"
"M:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\"
"C:\Program Files\Microsoft Visual Studio 9.0\VC\"
etc.
How can we retrieve this directory path name within our CMakeLists.txt?
There's no standard CMake variable like ${CMAKE_COMPILER_DIR}, right?
Looking at a CMakeCache.txt file generated for Visual C++ 12 (2013) by
CMake 2.8.12.2, I saw exactly one variable that would help us:
CMAKE_LINKER:FILEPATH=C:/Program Files (x86)/Microsoft Visual Studio
12.0/VC/bin/link.exe
installation directory of Visual C++, which may have one of the
following path names, for example:
"C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\"
"M:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\"
"C:\Program Files\Microsoft Visual Studio 9.0\VC\"
etc.
How can we retrieve this directory path name within our CMakeLists.txt?
There's no standard CMake variable like ${CMAKE_COMPILER_DIR}, right?
Looking at a CMakeCache.txt file generated for Visual C++ 12 (2013) by
CMake 2.8.12.2, I saw exactly one variable that would help us:
CMAKE_LINKER:FILEPATH=C:/Program Files (x86)/Microsoft Visual Studio
12.0/VC/bin/link.exe