Skip to content

Commit

Permalink
Update runCmakeVS.cmd
Browse files Browse the repository at this point in the history
added BOOST_INCLUDE_DIR (got an error) and MSVC_RUNTIME=static, needed to avoid inclusion of 3 MSVC DLLs in deployment: msvcp<version>.dll, vcruntime<version>.dll and vcruntime<version>_1.dll
  • Loading branch information
rkapl123 committed Nov 27, 2020
1 parent 9c047a0 commit 5174122
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion runCmakeVS.cmd
@@ -1,4 +1,5 @@
mkdir build
cmake -G "Visual Studio 16 2019" -A x64 -D BOOST_LIBRARYDIR=C:\dev\boost\lib -DBOOST_ROOT=C:\dev\boost -B build
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
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
cmake --build build -v --config Release
pause

0 comments on commit 5174122

Please sign in to comment.