View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0002146CMakeCMakepublic2005-08-12 11:442005-09-08 10:08
ReporterMathieu Malaterre 
Assigned ToBill Hoffman 
PrioritylowSeverityfeatureReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0002146: Xcode needs to define CMAKE_CONFIGURATION_TYPES
DescriptionXcode needs to define CMAKE_CONFIGURATION_TYPES like the visual studio generators do.
So that we can build and run VTK-Examples

[CMAKE_CFG_INTDIR and IntDir cannot be used because the ADD_TEST command is not processed inside the build system. Choosing the matching configuration must be done at ctest time with the -C option. The ADD_TEST command is constructed to actually put a ${CTEST_CONFIGURATION_TYPE} in the test command. It is expanded by ctest when it reads the DartTestfile.txt.

This only works with CVS ctest (and maybe 2.2 but I don't remember), so VTK/Examples/CMakeLists.txt has a bunch of code to turn on this feature if the ctest is new enough. Since an older ctest or Dart could be used for testing after building with CVS cmake one also has to set the undocumented VTK_TEST_WITH_CTEST:BOOL=ON option in the cache to enable this support. I'd like a better way to detect when it is safe to add ${CTEST_CONFIGURATION_TYPE} to the test command but at the time I wrote it I just wanted to get it working for the VS tests on the dashboard machines.
]
TagsNo tags attached.
Attached Files

 Relationships

  Notes
(0002994)
Bill Hoffman (manager)
2005-09-08 10:08

done

 Issue History
Date Modified Username Field Change


Copyright © 2000 - 2018 MantisBT Team