From bfc301379c940d19cefa6beca34898c45de39e9d Mon Sep 17 00:00:00 2001 From: Laurent Perron Date: Sat, 22 Jun 2019 22:30:31 +0200 Subject: [PATCH] try to fix vs2019 support --- makefiles/Makefile.port.mk | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/makefiles/Makefile.port.mk b/makefiles/Makefile.port.mk index 761c2863cc..cf07b36864 100755 --- a/makefiles/Makefile.port.mk +++ b/makefiles/Makefile.port.mk @@ -102,7 +102,16 @@ ifeq ($(SYSTEM),win) GLPK_PLATFORM = w64 NETPLATFORM = x64 else - $(warning "Only visual studio 2017 and up 64 bit is supported") + ifeq ("$(Platform)","x64") # Visual Studio 2017/2019 64 bit + PLATFORM = WIN64 + PTRLENGTH = 64 + CMAKE_SUFFIX = Win64 + CBC_PLATFORM_PREFIX = x64 + GLPK_PLATFORM = w64 + NETPLATFORM = x64 + else + $(warning "Only visual studio 2017 and up 64 bit is supported") + endif endif # Detect visual studio version