Configuration-dependant objects
-
- CodeLite Curious
- Posts: 6
- Joined: Wed Sep 03, 2008 11:44 am
- Contact:
Configuration-dependant objects
I have hiles that are built only in certain configurations, because platform/architecture independant. I wonder if it is possible to add these objects to the list of files to be built only when the proper configuration is selected ?
- eranif
- CodeLite Plugin
- Posts: 6375
- Joined: Wed Feb 06, 2008 9:29 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: Configuration-dependant objects
Currently no.screetch wrote:I have hiles that are built only in certain configurations, because platform/architecture independant. I wonder if it is possible to add these objects to the list of files to be built only when the proper configuration is selected ?
The best workaround:
Create another project and place all your platform related files there.
in the main project you can define the build order, 'project context menu -> Build Order...'
The trick is that the build order is set per-configuration.
So simply link the newly created project with the main project only for the required configurations
Eran
Make sure you have read the HOW TO POST thread
-
- CodeLite Curious
- Posts: 6
- Joined: Wed Sep 03, 2008 11:44 am
- Contact:
Re: Configuration-dependant objects
Thanks. I will have a look at it. It's definitely possible to do this for me since the projects are generated, so I'll test it