prevent SDL2main from being linked in on windows
authoralfadur
Wed, 21 Nov 2018 23:55:32 +0300
changeset 14273 23eacb6f1c20
parent 14272 b6c24abb247b
child 14274 47af42f7ca8b
prevent SDL2main from being linked in on windows
tools/build_vcpkg_basic.bat
--- a/tools/build_vcpkg_basic.bat	Wed Nov 21 15:47:40 2018 -0500
+++ b/tools/build_vcpkg_basic.bat	Wed Nov 21 23:55:32 2018 +0300
@@ -17,7 +17,7 @@
 echo Running cmake...
 set ERRORLEVEL=
 
-cmake . -DCMAKE_TOOLCHAIN_FILE="%VCPKG_PATH%\scripts\buildsystems\vcpkg.cmake" -G"NMake Makefiles" -DNOPNG=1 -DNOSERVER=1 -DNOVIDEOREC=1 -DCMAKE_BUILD_TYPE="%BUILD_TYPE%"
+cmake . -DCMAKE_TOOLCHAIN_FILE="%VCPKG_PATH%\scripts\buildsystems\vcpkg.cmake" -G"NMake Makefiles" -DNOPNG=1 -DNOSERVER=1 -DNOVIDEOREC=1 -DCMAKE_BUILD_TYPE="%BUILD_TYPE%" -DSDL2_BUILDING_LIBRARY=1
 
 if %ERRORLEVEL% NEQ 0 goto exitpoint