View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0003562CMakeCMakepublic2006-07-31 14:092016-06-10 14:30
ReporterMarcelo Santos 
Assigned ToBill Hoffman 
PrioritylowSeverityminorReproducibilityalways
StatusclosedResolutionmoved 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0003562: error creating an alias for the test target
DescriptionI 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.
TagsNo tags attached.
Attached Files

 Relationships
related to 0004565closedBill Hoffman RFE: run test suites with 'make check' 

  Notes
(0005384)
System Admin (reporter)
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 (administrator)
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.

 Issue History
Date Modified Username Field Change
2007-08-31 11:28 Alex Neundorf Assigned To System Admin => Bill Hoffman
2011-02-08 12:29 David Cole Relationship added related to 0004565
2016-06-10 14:27 Kitware Robot Note Added: 0041314
2016-06-10 14:27 Kitware Robot Status assigned => resolved
2016-06-10 14:27 Kitware Robot Resolution open => moved
2016-06-10 14:30 Kitware Robot Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team