MantisBT - CMake
View Issue Details
0003562CMakeCMakepublic2006-07-31 14:092016-06-10 14:30
Marcelo Santos 
Bill Hoffman 
lowminoralways
closedmoved 
 
 
0003562: error creating an alias for the test target
I believe the following commands should work:

ADD_CUSTOM_TARGET( check )
ADD_DEPENDENCIES( check test )

but they don't.

I was able to work around the problem by using:

ADD_CUSTOM_TARGET( check COMMAND ctest
  DEPENDS
    foo_test
)

as suggested by William Hoffman but I would have to put all tests in the depends clause.

I believe the dependency/alias approach would make the code cleaner.
No tags attached.
related to 0004565closed Bill Hoffman RFE: run test suites with 'make check' 
Issue History
2007-08-31 11:28Alex NeundorfAssigned ToSystem Admin => Bill Hoffman
2011-02-08 12:29David ColeRelationship addedrelated to 0004565
2016-06-10 14:27Kitware RobotNote Added: 0041314
2016-06-10 14:27Kitware RobotStatusassigned => resolved
2016-06-10 14:27Kitware RobotResolutionopen => moved
2016-06-10 14:30Kitware RobotStatusresolved => closed

Notes
(0005384)
System Admin   
2006-10-12 15:02   
The problem is that test is global target and there is no interface to global targets in CMake language yet. This may be 2.6 feature.
(0041314)
Kitware Robot   
2016-06-10 14:27   
Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page.