[cmake-developers] [CMake 0013080]: CTEST_CMAKE_COMMAND ignored by "ctest_*" command.
Mantis Bug Tracker
mantis at public.kitware.com
Fri Mar 30 12:00:41 EDT 2012
The following issue has been SUBMITTED.
======================================================================
http://www.cmake.org/Bug/view.php?id=13080
======================================================================
Reported By: Jean-Christophe Fillion-Robin
Assigned To:
======================================================================
Project: CMake
Issue ID: 13080
Category: CTest
Reproducibility: always
Severity: minor
Priority: normal
Status: new
======================================================================
Date Submitted: 2012-03-30 12:00 EDT
Last Modified: 2012-03-30 12:00 EDT
======================================================================
Summary: CTEST_CMAKE_COMMAND ignored by "ctest_*" command.
Description:
If CTEST_CMAKE_COMMAND is set within a ctest script, its value isn't used.
If not explicitly set, should CTEST_CMAKE_COMMAND default to the value of cmake
corresponding to the ctest program used to run the script ?
Steps to Reproduce:
The attached archive bundle a very simple example illustrating the issue. I
reproduced the problem using the following version of CMake/CTest:
Test case1:
~/Dashboards/Support/cmake-2.8.7-Linux-i386/bin/ctest -S drive_build.ctest -VV
Within drive_build.ctest:
CTEST_CMAKE_COMMAND:
/home/jchris/Dashboards/Support/cmake-2.8.8-rc1-Linux-i386/bin/cmake
Within CMakeLists.txt:
cmake_minimum_required(VERSION 2.8.8)
Test case2
~/Dashboards/Support/cmake-2.8.6-Linux-i386/bin/ctest -S drive_build.ctest -VV
Within drive_build.ctest:
CTEST_CMAKE_COMMAND:
/home/jchris/Dashboards/Support/cmake-2.8.7-Linux-i386/bin/cmake
Within CMakeLists.txt:
cmake_minimum_required(VERSION 2.8.7)
Additional Information:
Example of output (Test case2)
* Extra verbosity turned on
Reading Script:
/home/jchris/Projects/sandbox/ctest-cmake-command-ignored/drive_build.ctest
Before explicity setting CTEST_CMAKE_COMMAND:
After explicity setting
CTEST_CMAKE_COMMAND:/home/jchris/Dashboards/Support/cmake-2.8.7-Linux-i386/bin/cmake
CTEST_SOURCE_DIRECTORY:/home/jchris/Projects/sandbox/ctest-cmake-command-ignored
CTEST_BINARY_DIRECTORY:/home/jchris/Projects/sandbox/ctest-cmake-command-ignored/build
SetCTestConfiguration:SourceDirectory:/home/jchris/Projects/sandbox/ctest-cmake-command-ignored
SetCTestConfiguration:BuildDirectory:/home/jchris/Projects/sandbox/ctest-cmake-command-ignored/build
Run dashboard with model Continuous
Source directory: /home/jchris/Projects/sandbox/ctest-cmake-command-ignored
Build directory:
/home/jchris/Projects/sandbox/ctest-cmake-command-ignored/build
Reading ctest configuration file:
/home/jchris/Projects/sandbox/ctest-cmake-command-ignored/CTestConfig.cmake
SetCTestConfigurationFromCMakeVariable:NightlyStartTime:CTEST_NIGHTLY_START_TIMESetCTestConfiguration:NightlyStartTime:23:00:00
EDT
Site:
Build name:
Use Continuous tag: 20120330-1557
SetCTestConfiguration:BuildDirectory:/home/jchris/Projects/sandbox/ctest-cmake-command-ignored/build
SetCTestConfiguration:SourceDirectory:/home/jchris/Projects/sandbox/ctest-cmake-command-ignored
SetCTestConfiguration:ConfigureCommand:"/home/jchris/Dashboards/Support/cmake-2.8.6-Linux-i386/bin/cmake"
"-GUnix Makefiles" "/home/jchris/Projects/sandbox/ctest-cmake-command-ignored"
SetCTestConfiguration:BuildDirectory:/home/jchris/Projects/sandbox/ctest-cmake-command-ignored/build
SetCTestConfiguration:SourceDirectory:/home/jchris/Projects/sandbox/ctest-cmake-command-ignored
Configure project
Configure with command:
"/home/jchris/Dashboards/Support/cmake-2.8.6-Linux-i386/bin/cmake" "-GUnix
Makefiles" "/home/jchris/Projects/sandbox/ctest-cmake-command-ignored"
Run command: "/home/jchris/Dashboards/Support/cmake-2.8.6-Linux-i386/bin/cmake"
"-GUnix Makefiles" "/home/jchris/Projects/sandbox/ctest-cmake-command-ignored"
Each . represents 1024 bytes of output
.-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/local/bin/gcc
-- Check for working C compiler: /usr/local/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/local/bin/c++
-- Check for working CXX compiler: /usr/local/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
CMake Error at CMakeLists.txt:8 (cmake_minimum_required):
CMake 2.8.7 or higher is required. You are running version 2.8.6
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2012-03-30 12:00 Jean-Christophe Fillion-RobinNew Issue
2012-03-30 12:00 Jean-Christophe Fillion-RobinFile Added:
ctest-cmake-command-ignored.tgz
======================================================================
More information about the cmake-developers
mailing list