Skip to content

Commit 5d0bcf8

Browse files
committed
Turn on absl static linking for msvc runtime libraries
1 parent c6f3e07 commit 5d0bcf8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

buildscripts/make_dependencies.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ for /f "tokens=4 delims=\" %%a in ("%VCINSTALLDIR%") do (
5151
for /f "tokens=1 delims=." %%a in ("%VisualStudioVersion%") do (
5252
SET visual_studio_major_version=%%a
5353
)
54-
cmake -Dprotobuf_BUILD_TESTS=OFF -DCMAKE_INSTALL_PREFIX=%cd%\protobuf-%PROTOBUF_VER% -DCMAKE_PREFIX_PATH=%cd%\protobuf-%PROTOBUF_VER% -G "Visual Studio %visual_studio_major_version% %VC_YEAR%" %CMAKE_VSARCH% .. || exit /b 1
54+
cmake -DABSL_MSVC_STATIC_RUNTIME=ON -Dprotobuf_BUILD_TESTS=OFF -DCMAKE_INSTALL_PREFIX=%cd%\protobuf-%PROTOBUF_VER% -DCMAKE_PREFIX_PATH=%cd%\protobuf-%PROTOBUF_VER% -G "Visual Studio %visual_studio_major_version% %VC_YEAR%" %CMAKE_VSARCH% .. || exit /b 1
5555
cmake --build . --config Release --target install || exit /b 1
5656
popd
5757
goto :eof

0 commit comments

Comments
 (0)