MantisBT - CMake
View Issue Details
0005202CMakeCMakepublic2007-06-18 08:492010-12-14 11:37
Stefan Donath 
David Cole 
urgentmajoralways
closedfixed 
 
CMake 2.8.4 
0005202: Wrong relative path for AdditionalLibraryDirectories, VS2005
A CMake project including another project as library results in the following linker configuration (shorted):
<Tool Name="VCLinkerTool"
    AdditionalDependencies="$(NOINHERIT) .. pe.lib "
                OutputFile="Debug\solver.exe"
    AdditionalLibraryDirectories="..\..\extern\pe\lib\$(OutDir),..\..\extern\pe\lib"
/>
, where the pe library is located in <projectroot>/extern/pe/lib.
Since the working directory of the linker is <projectroot>/bin, and not in <projectroot>/bin/Debug, there is one "..\" too much. Changing that manually works around the bug.

Regards,
Stefan D.
No tags attached.
Issue History
2010-12-14 11:36David ColeAssigned ToKen Martin => David Cole
2010-12-14 11:37David ColeNote Added: 0023958
2010-12-14 11:37David ColeStatusassigned => closed
2010-12-14 11:37David ColeResolutionopen => fixed
2010-12-14 11:37David ColeFixed in Version => CMake 2.8.4

Notes
(0023958)
David Cole   
2010-12-14 11:37   
I am fairly confident that this bug as reported does not occur with the current version of CMake 2.8.3. If you can still reproduce this problem, please re-open and attach additional data.

Thanks.