Hi Nick,
Not sure if it is relevant for you, but for other who will search.
I have the same problem.
What I found:
1. When you issue "cmake --build", it runs following command line:
msbuild ALL_BUILD.vcxproj /p:Platform=Win32 ...
So it is not a solution file, that have rules to match configurations, but a
ALL_BUILD project file.
2. inside each *.vcxproj, there is a section(s)
<ProjectReference Include="<path_to>\ZERO_CHECK.vcxproj">
<Project>{979FF7F1-351C-30B2-9F05-100EBC38B87E}</Project>
<Name>ZERO_CHECK</Name>
</ProjectReference>
There is reference for each dependent projects.
3. ms build is using this information to build project and all its
dependencies.
4. however, <ProjectReference ..> does not contain configuration matching
rules (set with MAP_IMPORTED_CONFIG_XXX)
5. there is a way to specify configuration in ProjectReference, but VS
generator in CMake does not have this ability.
5.1. Way to specify:
https://stackoverflow.com/questions/6624168/configuration-for-projectreference-in-msbuild
<ProjectReference Include="path to project.projext">
<SetPlatform>Platform=x64</SetPlatform>
<SetConfiguration>Configuration=Release</SetConfiguration>
</ProjectReference>
Conclusion: I don't think that CMake can do it right now.
I plan to add Debug/Release targets on my proprietary provided projects.
Probably this can be address in future version of CMake.
Regards,
Serg
--
Sent from: http://cmake.3232098.n2.nabble.com/
--
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:
https://cmake.org/mailman/listinfo/cmake