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:[email protected]] Sent: Mon 4/12/2010 12:26 PM To: Zou, Di (Cont, ARL/CISD) Cc: [email protected] 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 _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
