Set current directory variables in CTest scripts
commit7ad218dddc05ef33140fef464796fe435fd18bfc
authorking <king>
Fri, 31 Jul 2009 13:19:19 +0000 (31 13:19 +0000)
committerking <king>
Fri, 31 Jul 2009 13:19:19 +0000 (31 13:19 +0000)
treeff0bc909da58bcecca6f6386a8deefeb3aae5b9f
parent202e1dd43a29353bd4c23ca7b33e1a0b63b38e19
Set current directory variables in CTest scripts

The commit "Fix get_filename_component ABSOLUTE mode" broke the code

  get_filename_component(cwd . ABSOLUTE)

because CTest scripts did not make cmMakefile::GetCurrentDirectory()
available.  This commit fixes the problem by setting the proper
information on CTest script instances of cmMakefile.

This also makes CMAKE_CURRENT_SOURCE_DIR and CMAKE_CURRENT_BINARY_DIR
available to CTest scripts.  They are set to the working directory at
script startup.
Source/CTest/cmCTestScriptHandler.cxx