[CMake] how to map to cmake configurations when using include_external_msproject?

David Genest david.genest at ubisoft.com
Mon Apr 12 16:51:51 EDT 2010


Reposting... trying to get your attention. Using cmake 2.8.0. Thank you for your time.

I am including a thirdparty msproject with the
include_external_msproject() command. But this project has different
configurations than the standard cmake configs.

The mapping is like this:

CMake				External Ms proj
-----				----------------
Debug		    -> 	Debug
RelWithDebInfo 	->	Release
Release		    ->	Retail

I have tried using the MAP_IMPORTED_CONFIG_<CONFIG> target property,
but it has no effect (although the documentation says exactly what I
want to accomplish, it mentions references to IMPORTED targets).

Here is my code:

include_external_msproject(externalms <pathToproject>)
set_target_properties(externalms PROPERTIES
	MAP_IMPORTED_CONFIG_RELEASE "Retail"
	MAP_IMPORTED_CONFIG_RELWITHDEBINFO "Release")

Is there a way to have the configuration mapping done correctly with
the include_external_msproject() command?

Thanks,

David.


More information about the CMake mailing list