开发者

copy build configuration to release configuration (Eclipse)

开发者 https://www.devze.com 2023-03-18 16:31 出处:网络
Once I have set the include directories and linking directories for an Eclipse project in debug configuration, is there an easy way to copy them over to the release configuration without entering them

Once I have set the include directories and linking directories for an Eclipse project in debug configuration, is there an easy way to copy them over to the release configuration without entering them in again manually (or开发者_StackOverflow vice versa)?


In the project properties, in the field Configuration, you should choose between Debug, Release and All Configuration. If you select "All configurations", everything you set will be applied to Debug and Release. The issue is that, sometimes, include and linking directories depends on the configuration. For instance : ".../Include/Debug" or ".../Include/Release". In this case, you can still use "All Configurations" and write ".../Include/${ConfigName}"

ConfigName is an Eclipse variable that is automatically preset to Debug or Release according to the configuration. ${Var} means that you want to include the value of Var. In the example above, the string will be understand by Eclipse as ".../Include/Debug" or ".../Include/Release" according to the configuration.

You can add your own variable in Properties / C/C++ Build / Build Variables, in order to do more powerful things.

0

精彩评论

暂无评论...
验证码 换一张
取 消