Jump to content
Sign in to follow this  
David P

Project Options - Paths - variable name for exe

Recommended Posts

Does anyone know of a variable for the exe name I can use in the Project|Options|C++ Shared Options - Paths?
 
$(ModuleName) is blank and using some M$Build name var (I forget the exact name) results in F9 not being able to find the exe.
 
Ideally, I'd like a standard output path for all projects, something like:
 
     $(DEV_BUILD_DIR)\$(ExeNameHere)_$(Platform)_$(Config)
 
Thanks all.

Share this post


Link to post

Thanks Uwe.  I forgot that I'd already asked this question and tried  $(SanitizedProjectName) , which fails for some elements of the BCB toolchain (Linker I think).

 

 

 

Edited by David P

Share this post


Link to post

From the above thread, your comment:

>> The variable is defined in the base configuration, so it is safe to use it in the inherited ones, but fails when used inside the base configuration itself.

 

Gives the solution.  Do not define the output paths in

      Target - All Configuraitons

but in

    Target - Debug Configuration - All Platforms  / Release Configuration - All Platforms

 

then it works . 

 

Edited by David P

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×