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? 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'. include_external_msproject(ext_test c:/test/test/test.sln PLATFORM "AnyCPU") 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. Appreciate any input. Regards, Lars > From: iosif.neitzke+cm...@gmail.com > Date: Tue, 26 Jan 2016 09:24:35 -0600 > To: cmake@cmake.org > Subject: Re: [CMake] include_external_msproject > > No, I do not believe so. > > https://cmake.org/cmake/help/v3.4/command/include_external_msproject.html > > Keyword being 'project'. > > On Tue, Jan 26, 2016 at 8:43 AM, Lars <laasu...@hotmail.com> wrote: > > Appreciate some help understanding include_external_msproject. > > Using Windows 7 and cmake 3.3 > > > > This is what has been done so far, > > > > 1. Opened Visual Studio 2012 and created a new project (Windows Forms > > Application) and saved it under c:\temp\test. > > > > 2. Used the following to an cmake; > > include_external_msproject(ext_test c:/test/test/test.sln) > > > > This generates an error MSB4126: The specified solution configuration > > "Debug|x86" is invalid. Please specify a valid solution configuration using > > the configuration and platform properties... > > > > 3. So update the cmake file (below), clear build folder and build again; > > include_external_msproject(ext_test c:/test/test/test.sln PLATFORM "Any > > CPU") > > > > This generate the exact same error message as above. So the PLATFORM keyword > > does not appear to be used in this context. Anyone care to explain how > > PLATFORM works and howto specify correct configuration and platform? > > > > 4. To workaround the problem we open the visual studio project and added the > > configuration and platform combo "Debug" and "x86" which cmake appears to > > require. We use the original cmake script (below), clear build folder and > > build again. > > include_external_msproject(ext_test c:/test/test/test.sln) > > > > The following error is produced; > > c:\temp\test\test\test.sln.metaproj : error MSB4057: The target > > "GetNativeManifest" does not exists in the project. > > > > Searched all files in source and build directory and cannot find any > > reference to "GetNativeManifest". See some issue online in regards to build > > order but cannot see how that applies to this simple example. Really do not > > understand this issue. Any ideas? > > > > 6. Update cmake and use .csproj instead of the solution file and it works. > > The test.exe file is build. The cmake looks like this > > include_external_msproject(ext_test c:/test/test/test.csproj) > > > > Does include_external_msproject support solution files? > > > > > > -- > > > > Powered by www.kitware.com > > > > Please keep messages on-topic and check the CMake FAQ at: > > http://www.cmake.org/Wiki/CMake_FAQ > > > > Kitware offers various services to support the CMake community. For more > > information on each offering, please visit: > > > > CMake Support: http://cmake.org/cmake/help/support.html > > CMake Consulting: http://cmake.org/cmake/help/consulting.html > > CMake Training Courses: http://cmake.org/cmake/help/training.html > > > > Visit other Kitware open-source projects at > > http://www.kitware.com/opensource/opensource.html > > > > Follow this link to subscribe/unsubscribe: > > http://public.kitware.com/mailman/listinfo/cmake > -- > > Powered by www.kitware.com > > Please keep messages on-topic and check the CMake FAQ at: > http://www.cmake.org/Wiki/CMake_FAQ > > Kitware offers various services to support the CMake community. For more > information on each offering, please visit: > > CMake Support: http://cmake.org/cmake/help/support.html > CMake Consulting: http://cmake.org/cmake/help/consulting.html > CMake Training Courses: http://cmake.org/cmake/help/training.html > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/cmake
--
Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/cmake