Hello!<div><br></div><div>We just tried out CMake 2.8.0 today and we found that our old CMake build scripts don't work anymore.</div><div><br></div><div>One particular error was related to the handling of the current working directory of the function </div>
<div>get_filename_component(FULLPATH ${SUBDIRECTORY} REALPATH)</div><div><br></div><div>I used this function in a small macro to get the full path of a subdirectory in a certain CMakeLists.txt.</div><div><br></div><div>The behaviour of CMake 2.6.4 was to use the path of the CMakeLists.txt as the working dir.</div>
<div>So for example calling this function on ../subdir in c:\foo\bar\projectpart\CMakeLists.txt would have returned C:/foo/bar/subdir</div><div>Now the result of this function seems to depent from the working dir from which cmake was called.</div>
<div>So if I have opened up my console window in c:\my\build\tree the same call of this function returns c:/my/build/subdir</div><div><br></div><div>After calling this function I add the subdirectory using add_subdirectory(${SUBDIRECTORY} PROJECTNAME) which works in both cases</div>
<div>regardless of what the working directory of the console window was.</div><div><br></div><div>I just checked the list of changes and I didn't find this listed there officially. Was this an intentional change or is it a bug?</div>
<div><br></div><div>Greetings</div><div><br></div><div>Yannick Mortier</div>