![]() ![]() The statements that clear the variables with the flags are placed in the main CMake project file to ensure they do not affect any target in your build. My_compiler_setup(TARGET Example LIBRARY SHARED CLI) List(APPEND _cli_compile_libs "/FU$)Īfter writing this function, you can import it and set up the target like this: cmake_minimum_required(VERSION 3.20.0) Open the Visual Studio, click on the 'Create a new project' and choose for the language 'C++', for the platform 'Linux'. If you have Visual Studio 2017 Community, you will see Community, Professional. For more information see the CMake 3.7.2 release. The updated CMake menu is based on your feedback. See the following minimal example CMakeLists.txt file: cmake_minimum_required(VERSION 3.20.0)Īdd_subdirectory(src) # All sources are added hereįoreach(_lib_name mscorlib.dll System.dll ) Open the Visual Studio Installer, click on the 'Modify' button un make sure that you have the following components installed: Desktop development with C++, Linux development with C++. Release notes for features and improvements in Visual Studio 2017 version 15.2. These are required to develop C++ programs and will result in compiler errors. ![]() While the answer from Tsyvarev works fine with Visual Studio generators (as he explained), making a build work with regular C++ code and C++/CLI code universally (e.g. Qt Downloads Visual Studio 2017 Community Web Installer (direct download).
0 Comments
Leave a Reply. |