[CMake] error using ctest_configure in a ctest script
Zou, Di (Cont, ARL/CISD)
di.zou at us.army.mil
Mon Apr 12 13:15:11 EDT 2010
I replaced:
ctest_configure(OPTIONS "-C ~/NetDMF_CMake_Config")
with:
ctest_configure(OPTIONS "-C $ENV{HOME}/NetDMF_CMake_Config")
I get the same error:
Configure Command:"/usr/cta/CSE/Release/cmake-2.8.0.5/bin/cmake" "-C /home/dizou/NetDMF_CMake_Config" "-GUnix Makefiles" "/home/dizou/NetDMF_KD"
Configure Return Value:1
Configure Output:
loading initial cache file /home/dizou/NetDMF_CMake_Config
CMake Error: Error processing file: /home/dizou/NetDMF_CMake_Config
The configure command does not work from the terminal window either.
-----Original Message-----
From: Tyler Roscoe [mailto:tyler at cryptio.net]
Sent: Mon 4/12/2010 12:26 PM
To: Zou, Di (Cont, ARL/CISD)
Cc: cmake at cmake.org
Subject: Re: [CMake] error using ctest_configure in a ctest script
On Mon, Apr 12, 2010 at 12:11:54PM -0400, Zou, Di (Cont, ARL/CISD) wrote:
> I have this line in my ctest script:
> ctest_configure(OPTIONS "-C ~/NetDMF_CMake_Config")
>
> At the dashboard, this is the error I get:
> Build Name:build-linux-c++
>
> Configure Command:"/usr/cta/CSE/Release/cmake-2.8.0.5/bin/cmake" "-C ~/NetDMF_CMake_Config" "-GUnix Makefiles" "~/NetDMF_KD"
>
> Configure Return Value:1
>
> Configure Output:
>
> loading initial cache file ~/NetDMF_CMake_Config
> CMake Error: Error processing file: ~/NetDMF_CMake_Config
'~' meaning your home dir is evaluated by your shell. Most non-shell
tools don't understand what it means.
Try using an absolute path (/home/di.zou) or the $HOME environment
variable ($ENV{HOME} in CTest land).
tyler
More information about the CMake
mailing list