New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
visual_studio generator variables #1430
visual_studio generator variables #1430
Conversation
@@ -24,30 +24,45 @@ Generated xml structure: | |||
<Conan-Lib2-Root>{PACKAGE LIB2 FOLDER}</Conan-Poco-Root> | |||
... | |||
</PropertyGroup> | |||
<PropertyGroup Label="ConanVariables"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/home/travis/build/conan-io/docs/reference/generators/visualstudio.rst:16:Could not lex literal_block as "xml". Highlighting skipped.
The usage of I have one VisualStudio project that imports a <?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ImportGroup Label="PropertySheets">
<Import Project="conanbuildinfo.props" />
</ImportGroup>
<!-- some other stuff -->
</Project> Then I have a second Visual Studio project (a GTest project) which consumes the first project via its Now in the <ImportGroup Label="PropertySheets">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
<Import Project="conanbuildinfo.props" />
<Import Project="..\..\Panopto.Native.Media.Lib\export.props" />
</ImportGroup> I eventually fixed the build error by switching the order of the XML fields so that <ImportGroup Label="PropertySheets">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
<Import Project="..\..\Panopto.Native.Media.Lib\export.props" />
<!--This needs to come after all of the `export.props` imports because of something odd about how intermediate variables are defined and then can be redefined before they are evaluated.-->
<Import Project="conanbuildinfo.props" />
</ImportGroup> Apparently, the intermediate |
No description provided.