[cmake-developers] [CMake 0013170]: add_executable(test) & ENABLE_TESTING
Mantis Bug Tracker
mantis at public.kitware.com
Wed Apr 25 15:47:50 EDT 2012
The following issue has been SUBMITTED.
======================================================================
http://public.kitware.com/Bug/view.php?id=13170
======================================================================
Reported By: Daniel Franke
Assigned To:
======================================================================
Project: CMake
Issue ID: 13170
Category: CMake
Reproducibility: always
Severity: minor
Priority: normal
Status: new
======================================================================
Date Submitted: 2012-04-25 15:47 EDT
Last Modified: 2012-04-25 15:47 EDT
======================================================================
Summary: add_executable(test) & ENABLE_TESTING
Description:
Reduced testcase:
$ cat test.c
int main() {}
$ cat CMakeLists.txt
cmake_minimum_required (VERSION 2.6)
project (foo C)
add_executable(test test.c)
ENABLE_TESTING ()
$ mkir build; cd build; cmake ..
[...]
$ make
[nothing happens]
Apparently the "test" target defined by ENABLE_TESTING nullifies any
user-defined test target. Inexperienced users that only want to quickly, you
know, test something, may end up hitting a wall with this ...
Maybe a developer warning on ENABLE_TESTING() that there already is a 'test'
target and that it will be disabled would be nice?
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2012-04-25 15:47 Daniel Franke New Issue
======================================================================
More information about the cmake-developers
mailing list