Skip to content

Commit 7d43156

Browse files
mgronckijenkins
authored andcommitted
update userguide - cmake build with windows
1 parent 641a0a7 commit 7d43156

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

Docs/UserGuide/userguide.tex

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -755,7 +755,14 @@ \subsubsection*{Building on Windows with CMake}
755755
One advantage of the CMake build system is that it covers both Unix and Windows builds.
756756
The same set of {\tt CMakeLists.txt} files as above allows building ORE on Windows. The following instructions use the {\tt Ninja} build system ({\url{ninja-build.org}) that covers the role of {\tt make} on Unix systems and calls the Visual Studio C++ compiler and linker.
757757

758+
758759
\begin{enumerate}
760+
\item Set environment variables: \\
761+
\begin{itemize}
762+
\item {\tt \%BOOST\%} pointing to your directory, e.g, {\tt C:{\bs}boost\_1\_72\_0}
763+
\item {\tt \%BOOST\_LIB32\%} pointing to your Win32 lib directory, e.g, {\tt C:{\bs}boost\_1\_72\_0{\bs}lib32\-msvc\-14.0}
764+
\item {\tt \%BOOST\_LIB64\%} pointing to your x64 lib directory, e.g, {\tt C:{\bs}boost\_1\_72\_0{\bs}lib64\-msvc\-14.0}
765+
\end{itemize}
759766
\item Open a command prompt, change to directory C:{\textbackslash}Program Files (x86){\textbackslash}Microsoft Visual Studio 14.0{\textbackslash}VC and run\\
760767
\medskip
761768
{\tt vcvarsall.bat x64} \\
@@ -764,9 +771,10 @@ \subsubsection*{Building on Windows with CMake}
764771
\item Change to the ORE project directory that contains the {\tt QuantLib}, {\tt QuantExt}, etc, folders; create subdirectory {\tt build} and change to subdirectory {\tt build}
765772
\item Configure CMake e.g. by invoking \\
766773
\medskip
767-
{\tt cmake -D BOOST\_LIBRARYDIR=/path/to/boost/root/lib64-msvc-14.0 } \textbackslash\\
774+
{\tt cmake -D BOOST\_INCLUDEDIR=\%BOOST\% } \textbackslash\\
775+
{\tt \hspace{2cm} -D BOOST\_LIBRARYDIR=\%BOOST\_LIB64\% }\textbackslash\\
768776
{\tt \hspace{2cm} -D CMAKE\_BUILD\_TYPE=Release }\textbackslash\\
769-
{\tt \hspace{2cm} -D MSVC\_RUNTIME=static} \textbackslash\\
777+
{\tt \hspace{2cm} -D MSVC\_LINK\_DYNAMIC\_RUNTIME=true} \textbackslash\\
770778
{\tt \hspace{2cm} -G Ninja ..} \\
771779
\medskip
772780
where the -G option allows choosing the desired build system generator.

0 commit comments

Comments
 (0)