Skip to content

Commit 24958bc

Browse files
mgronckijenkins
authored andcommitted
update cmake project and userguide
1 parent c60f20a commit 24958bc

4 files changed

Lines changed: 11 additions & 6 deletions

File tree

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ option(ORE_BUILD_DOC "Build documentation" ON)
1010
option(ORE_BUILD_EXAMPLES "Build examples" ON)
1111
option(ORE_BUILD_TESTS "Build test suite" ON)
1212
option(ORE_BUILD_APP "Build app" ON)
13-
option(ORE_USE_ZLIB "Use compression for boost::iostreams" ON)
13+
option(ORE_USE_ZLIB "Use compression for boost::iostreams" OFF)
1414

1515
include(CTest)
1616

CMakePresets.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"QL_BUILD_BENCHMARK": false,
1717
"MSVC_LINK_DYNAMIC_RUNTIME": true,
1818
"MSVC_WHOLE_PROGRAM_OPTIMIZATION": true,
19-
"CMAKE_TOOLCHAIN_FILE": "$env{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake"
19+
"ENABLE_SESSIONS": true,
2020
},
2121
"architecture": {
2222
"value": "x64",
@@ -46,6 +46,7 @@
4646
"QL_BUILD_BENCHMARK": false,
4747
"MSVC_LINK_DYNAMIC_RUNTIME": false,
4848
"MSVC_WHOLE_PROGRAM_OPTIMIZATION": false,
49+
"ENABLE_SESSIONS": true,
4950
"CMAKE_TOOLCHAIN_FILE": "$env{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake"
5051
},
5152
"architecture": {
@@ -73,6 +74,7 @@
7374
"QL_BUILD_BENCHMARK": false,
7475
"MSVC_LINK_DYNAMIC_RUNTIME": true,
7576
"MSVC_WHOLE_PROGRAM_OPTIMIZATION": true,
77+
"ENABLE_SESSIONS": true,
7678
"CMAKE_TOOLCHAIN_FILE": "$env{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake"
7779
},
7880
"architecture": {
@@ -100,6 +102,7 @@
100102
"QL_BUILD_BENCHMARK": false,
101103
"MSVC_LINK_DYNAMIC_RUNTIME": false,
102104
"MSVC_WHOLE_PROGRAM_OPTIMIZATION": true,
105+
"ENABLE_SESSIONS": true,
103106
"CMAKE_TOOLCHAIN_FILE": "$env{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake"
104107
},
105108
"architecture": {

Docs/UserGuide/userguide.tex

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -718,7 +718,9 @@ \subsubsection*{Generate Visual Studio Projects with CMake}
718718
The solution and project files will be generated in the {\tt $\langle$ORE\_ROOT$\rangle${\bs}build} subdirectory.
719719
\end{itemize}
720720

721-
\item Open the {\tt build{\bs}ORE.sln} and build the entire solution (again, make sure to select the correct platform in the configuration manager first).
721+
\item build the cmake project with the command {\tt cmake --build build -v --config Release},
722+
723+
\item or open the MSVC solution file {\tt build{\bs}ORE.sln} and build the entire solution with Visual Studio (again, make sure to select the correct platform in the configuration manager first).
722724
\end{enumerate}
723725

724726
\subsubsection*{Unix}
@@ -1009,7 +1011,7 @@ \subsubsection*{Build ORE-SWIG Wrapper and Wheel}
10091011
\item the Python module and static library in folder {\tt <PATH>{\bs}build{\bs}lib.win-amd64-cpython-310} (the directory name depends on the machine and python version)
10101012
\item the wheel file (filename.whl) in folder {\tt <PATH>{\bs}dist}
10111013
\end{itemize}
1012-
where {\tt <PATH>} stands for {\tt \%ORESWIG\%{\bs}OREAnalytics-SWIG{\bs}Python}.
1014+
where {\tt <PATH>} stands for {\tt \%ORESWIG\%{\bs}OREAnalytics-SWIG{\bs}Python}.
10131015

10141016
\medskip
10151017
To use the wrapper directly: \\

runCmakeVS.cmd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
mkdir build
2-
rem amend the BOOST variables to your environment, the MSVC_RUNTIME=static is needed to avoid inclusion of 3 MSVC DLLs in deployment: msvcp<version>.dll, vcruntime<version>.dll and vcruntime<version>_1.dll
3-
cmake -G "Visual Studio 16 2019" -A x64 -DBOOST_LIBRARYDIR=C:\dev\boost\lib -DBOOST_ROOT=C:\dev\boost -DBOOST_INCLUDE_DIR=C:\dev\boost -DMSVC_RUNTIME=static -B build
2+
rem amend the BOOST variables to your environment
3+
cmake -G "Visual Studio 17 2022" -A x64 -DBOOST_INCLUDEDIR=%BOOST% -DBOOST_LIBRARYDIR=%BOOST_LIB64% -DENABLE_SESSIONS=ON -B build
44
cmake --build build -v --config Release
55
pause

0 commit comments

Comments
 (0)