<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>A solution file is in my view just an aggregation of projects. So I expected it to work in this context. Anyway, that leaves one question, how do I specify configuration and platform for the include_external_msproject?<BR> <BR>Using (below) does not work. I still get the error message "Please check to make sure that your have specified a valid combination of Configuration and Platform for this project. Configuration='Debug' Platform='x86'. <BR> <BR>include_external_msproject(ext_test c:/test/test/test.sln PLATFORM "AnyCPU")<BR> <BR>Updating the visual studio project with Configurations "Debug", "RelWithDebInfo" and "Release" and Platform "x86" is a workaround. Obviously it would be ideal if this could be controlled using cmake.<BR> <BR>Appreciate any input.<BR> <BR>Regards, Lars<BR> <BR><div>> From: iosif.neitzke+cmake@gmail.com<br>> Date: Tue, 26 Jan 2016 09:24:35 -0600<br>> To: cmake@cmake.org<br>> Subject: Re: [CMake] include_external_msproject<br>> <br>> No, I do not believe so.<br>> <br>> https://cmake.org/cmake/help/v3.4/command/include_external_msproject.html<br>> <br>> Keyword being 'project'.<br>> <br>> On Tue, Jan 26, 2016 at 8:43 AM, Lars <laasunde@hotmail.com> wrote:<br>> > Appreciate some help understanding include_external_msproject.<br>> > Using Windows 7 and cmake 3.3<br>> ><br>> > This is what has been done so far,<br>> ><br>> > 1. Opened Visual Studio 2012 and created a new project (Windows Forms<br>> > Application) and saved it under c:\temp\test.<br>> ><br>> > 2. Used the following to an cmake;<br>> > include_external_msproject(ext_test c:/test/test/test.sln)<br>> ><br>> > This generates an error MSB4126: The specified solution configuration<br>> > "Debug|x86" is invalid. Please specify a valid solution configuration using<br>> > the configuration and platform properties...<br>> ><br>> > 3. So update the cmake file (below), clear build folder and build again;<br>> > include_external_msproject(ext_test c:/test/test/test.sln PLATFORM "Any<br>> > CPU")<br>> ><br>> > This generate the exact same error message as above. So the PLATFORM keyword<br>> > does not appear to be used in this context. Anyone care to explain how<br>> > PLATFORM works and howto specify correct configuration and platform?<br>> ><br>> > 4. To workaround the problem we open the visual studio project and added the<br>> > configuration and platform combo "Debug" and "x86" which cmake appears to<br>> > require. We use the original cmake script (below), clear build folder and<br>> > build again.<br>> > include_external_msproject(ext_test c:/test/test/test.sln)<br>> ><br>> > The following error is produced;<br>> > c:\temp\test\test\test.sln.metaproj : error MSB4057: The target<br>> > "GetNativeManifest" does not exists in the project.<br>> ><br>> > Searched all files in source and build directory and cannot find any<br>> > reference to "GetNativeManifest". See some issue online in regards to build<br>> > order but cannot see how that applies to this simple example. Really do not<br>> > understand this issue. Any ideas?<br>> ><br>> > 6. Update cmake and use .csproj instead of the solution file and it works.<br>> > The test.exe file is build. The cmake looks like this<br>> > include_external_msproject(ext_test c:/test/test/test.csproj)<br>> ><br>> > Does include_external_msproject support solution files?<br>> ><br>> ><br>> > --<br>> ><br>> > Powered by www.kitware.com<br>> ><br>> > Please keep messages on-topic and check the CMake FAQ at:<br>> > http://www.cmake.org/Wiki/CMake_FAQ<br>> ><br>> > Kitware offers various services to support the CMake community. For more<br>> > information on each offering, please visit:<br>> ><br>> > CMake Support: http://cmake.org/cmake/help/support.html<br>> > CMake Consulting: http://cmake.org/cmake/help/consulting.html<br>> > CMake Training Courses: http://cmake.org/cmake/help/training.html<br>> ><br>> > Visit other Kitware open-source projects at<br>> > http://www.kitware.com/opensource/opensource.html<br>> ><br>> > Follow this link to subscribe/unsubscribe:<br>> > http://public.kitware.com/mailman/listinfo/cmake<br>> -- <br>> <br>> Powered by www.kitware.com<br>> <br>> Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ<br>> <br>> Kitware offers various services to support the CMake community. For more information on each offering, please visit:<br>> <br>> CMake Support: http://cmake.org/cmake/help/support.html<br>> CMake Consulting: http://cmake.org/cmake/help/consulting.html<br>> CMake Training Courses: http://cmake.org/cmake/help/training.html<br>> <br>> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html<br>> <br>> Follow this link to subscribe/unsubscribe:<br>> http://public.kitware.com/mailman/listinfo/cmake<br></div>                                       </div></body>
</html>