- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Is there a way to tell Visual Studio on the command line which installed Fortran compiler to use? I have a scripted build which needs to use specific compiler versions for different source branches. I have looked into exporting settings in Visual Studio which can be loaded on the command line using /ResetSettings, but Intel Fortran compiler settings do not appear in the export list. Any ideas?
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Do this. Call the ifortvars.bat script for the version you want, then use:
devenv /useenv
to invoke Visual Studio. This will use the environment variables already set up rather than what VS would normally use.
devenv /useenv
to invoke Visual Studio. This will use the environment variables already set up rather than what VS would normally use.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks, that's exactly what I was looking for.
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page