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                                    
======================================================================

--

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://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers

Reply via email to