[CMake] Is there a way to make include_external_msproject work with MAP_IMPORTED_CONFIG_<CONFIG> ?

David Genest david.genest at ubisoft.com
Wed Apr 7 11:41:48 EDT 2010


Hi, 

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