]> git.lyx.org Git - lyx.git/commitdiff
Describe how to set env vars for the MSVC compiler
authorGeorg Baum <baum@lyx.org>
Sun, 19 Jun 2016 11:26:48 +0000 (13:26 +0200)
committerGeorg Baum <baum@lyx.org>
Sun, 19 Jun 2016 11:26:48 +0000 (13:26 +0200)
The old instructions did assume that the MSVC bin directory was in the PATH.
This is not recommended, since it gets in the way if you want to compile for
32 and 64 bit. Therefore it is now described how to configure without the
PATH dependency.

INSTALL.Win32

index 6a617a369d4b8d14d53c6a6db001d5ae9febb620..a9d02a5bfe8be372134c2d4f8190503af069778d 100644 (file)
@@ -32,7 +32,12 @@ Compiling with Microsoft Visual C++
 
 5      Configure
 
-       - Run the CMake GUI.
+       - Open the MSVC 2015 command prompt and run the CMake GUI from there.
+         Alternatively, you can create a .bat file that first contains the line
+         call "C:\Program Files (x86)\Microsoft Visual Studio 2015\VC\vcvarsall.bat" x86
+         and then calls the CMake GUI and use this .bat file to start CMake.
+         The MSVC 2015 command prompt or vcvarsall.bat set some environment
+         variables that are needed for CMake to find the compiler.
 
        - Set the source code path to C:\LyX\lyx-23
          Set the build path to C:\LyX\lyx-23-build