Talk:CMake Generator Specific Information: Difference between revisions

From KitwarePublic
Jump to navigationJump to search
No edit summary
 
(change to 'VS8_Command_Prompt.bat')
 
(3 intermediate revisions by one other user not shown)
Line 1: Line 1:
Does anyone know if there is a way to make the Visual Studio generator use different a different .obj filename when two source files have the same name?  It would just have to set the ObjectFile parameter in the <FileConfiguration><Tool> section.
== Specify different .obj name ==
 
Does anyone know if there is a way to make the Visual Studio generator use a different .obj filename when two source files have the same name?  It would just have to set the ObjectFile parameter in the <FileConfiguration><Tool> section.
 
== This doesn't work ==
 
I tried this but it didn't work:
 
SET_SOURCE_FILES_PROPERTIES( myfile.cpp PROPERTIES COMPILE_FLAGS "/Fo\"myfile2.obj\"" )
 
- [[User:sshock|sshock]]
 
== change to 'VS8_Command_Prompt.bat'  ==
 
the given .bat does not modify the environment variables, it seems that the file 'vcvarsall.bat'
ovverides them. So to make it work in my computer I just put the @set PATH... under the call to 'vcvarall.bat'. Now it works well !

Latest revision as of 17:14, 24 May 2007

Specify different .obj name

Does anyone know if there is a way to make the Visual Studio generator use a different .obj filename when two source files have the same name? It would just have to set the ObjectFile parameter in the <FileConfiguration><Tool> section.

This doesn't work

I tried this but it didn't work:

SET_SOURCE_FILES_PROPERTIES( myfile.cpp PROPERTIES COMPILE_FLAGS "/Fo\"myfile2.obj\"" )

- sshock

change to 'VS8_Command_Prompt.bat'

the given .bat does not modify the environment variables, it seems that the file 'vcvarsall.bat' ovverides them. So to make it work in my computer I just put the @set PATH... under the call to 'vcvarall.bat'. Now it works well !