From faaae23b60d32f410dca1863c3027a8dad4c201d Mon Sep 17 00:00:00 2001 From: Yuqiao Zeng Date: Tue, 29 Jan 2019 15:47:51 -0500 Subject: [PATCH] Fix Visual Studio download link And trim the CMakeLists.txt --- CMakeLists.txt | 4 ++-- README.md | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3e2cd2e..2e1ca7c 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -113,8 +113,8 @@ if(WIN32) if(MSVC) set(MSVC_CXX_FLAGS "-std=gnu++11") - set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} /MD") - set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} /MD") + set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} /MD") + set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} /MD") if(BUILD_DEBUG) set(CMAKE_BUILD_TYPE Debug) diff --git a/README.md b/README.md index 77241f8..2062621 100644 --- a/README.md +++ b/README.md @@ -36,7 +36,7 @@ These steps (1) create an out-of-source build directory, (2) configure the proje #### Windows Build Instructions -We have a beta build support for Windows systems. You need to install the latest version of [CMake](http://www.cmake.org/) and install Visual Studio 2015 from [CMU Dreamspark web store](https://www.cmu.edu/computing/software/all/dreamspark/). After installing these programs, you can run `runcmake_win.bat` by double-clicking on it. This should create a `build` directory with a Visual Studio solution file in it named `drawsvg.sln`. You can double-click this file to open the solution in Visual Studio. +We have a beta build support for Windows systems. You need to install the latest version of [CMake](http://www.cmake.org/) and install [Visual Studio Community 2017](https://visualstudio.microsoft.com/vs/). After installing these programs, you can run `runcmake_win.bat` by double-clicking on it. This should create a `build` directory with a Visual Studio solution file in it named `drawsvg.sln`. You can double-click this file to open the solution in Visual Studio. If you plan on using Visual Studio to debug your program, you can change `drawsvg` project in the Solution Explorer as the startup project by right-clicking on it and selecting `Set as StartUp Project`. You can also set the commandline arguments to the project by right-clicking `drawsvg` project again, selecting `Properties`, going into the `Debugging` tab, and setting the value in `Command Arguments`. If you want to run the program with the basic svg folder, you can set this command argument to `../../svg/basic`. After setting all these, you can hit F5 to build your program and run it with the debugger. -- GitLab