[CMake] movable (Visual Studio) project files

Jesper Eskilson jesper at eskilson.se
Thu Jan 24 09:14:49 EST 2008


Hi all,

I'm getting repeated questions from other developers at my company about 
why the project files CMake generates for Visual Studio aren't movable, 
so I sat down, created a minimal project, switched on the 
CMAKE_USE_RELATIVE_PATHS flag, and ran cmake. It turns out that there 
are actually only two places where there still are absolute paths:

1. The description field for custom rule steps.
2. The ProgramDataBaseFileName attribute in the VCCLCompilerTool element.

The first issue I can live with, but the second issue shouldn't be too 
difficult to fix, right? As far as I can see from just studying the 
source code, its a small matter of changing one method in the 
cmTarget.cxx file.

Are there any other issues which prevent Visual Studio project files 
from being moved?

-- 
/Jesper




More information about the CMake mailing list