I’m working to a CMAKE project for Windows only resulting in Visual Studio projects.
In one of these projects I need to have a custom action when building in debug mode and a different custom action when building in release mode.
I understand that this is very easy to do in a Visual Studio project but I can’t find a way to do this with CMAKE.
Basically when trying to use the $<CONFIG> I get the $ sign into a very complex custom action batch CMAKE is trying to compose, of course the sytnax is not correct and causes the batch command to fail.
Isn’t there a simple way to have my two custom actions in the same output project?