Re: [CMake] CMAKE_CURRENT_LIST_FILE in CMake 2.6.3

2009-03-25 Thread Brad King
KSpam wrote: I attached a small example with the problem. The problem is actually a bit more complicated than my original explanation. I have a macro in my top-level CMakeLists.txt file: macro (getScriptDir _scriptDir) get_filename_component(${_scriptDir} ${CMAKE_CURRENT_LIST_FILE}

Re: [CMake] CMAKE_CURRENT_LIST_FILE in CMake 2.6.3

2009-03-25 Thread KSpam
Brad, On Wednesday 25 March 2009 07:38:41 Brad King wrote: Thanks for the example. There were two bugs canceling each other out for this use case. One was fixed in 2.6.3 which exposed the other. I've committed a fix and a test (the full commit log explains everything). I'll schedule this

[CMake] CMAKE_CURRENT_LIST_FILE in CMake 2.6.3

2009-03-24 Thread KSpam
not work in CMake 2.6.3 (apparently, CMAKE_CURRENT_LIST_FILE is empty). Is this a bug, or is it by design? Thanks, Justin ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Re: [CMake] CMAKE_CURRENT_LIST_FILE in CMake 2.6.3

2009-03-24 Thread Bill Hoffman
; however, it does not work in CMake 2.6.3 (apparently, CMAKE_CURRENT_LIST_FILE is empty). Is this a bug, or is it by design? Should work. Do you have a small example that shows this issue? -Bill ___ Powered by www.kitware.com Visit other Kitware open