Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
Welcome to the Intel Community. If you get an answer you like, please mark it as an Accepted Solution to help others. Thank you!
26758 Discussions

Adding version number to the output target file name (.dll)

Ibrahim_A_
Beginner
264 Views

Hello,

I'm using visual studio with Intel fortran compiler to build a (DLL). I want to change the output file name incrementally every time so that the newly compiled (DLL) would have a different number than the previous (e.g. version number, time or date).

Could I get help on that?

0 Kudos
1 Reply
jimdempseyatthecove
Black Belt
264 Views

With Visual Studio you can set a PreBuild event (and/or PostBuild event) that can be use to run a program (batch) that you write that increments an environment variable (YourSequenceVariable). Then you can use the $(YourSequenceVariable) in the output name/folder.

Jim Dempsey

Reply