Browse Source

Add warning regarding the location of ENABLE_TESTING (should be in the top CMakeList.txt, otherwise Dart is lost)

Sebastien Barre 24 years ago
parent
commit
8074eeebf1
1 changed files with 3 additions and 1 deletions
  1. 3 1
      Source/cmEnableTestingCommand.h

+ 3 - 1
Source/cmEnableTestingCommand.h

@@ -54,6 +54,8 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  * within the valid control structures are replicated in Testfile
  * (i.e. SUBDIRS() and ADD_TEST() commands within IF() commands that are
  * not entered by CMake are not replicated in Testfile).
+ * Note that Dart expects to find this file in the build directory root; 
+ * therefore, this command should be in the source directory root too.
  */
 class cmEnableTestingCommand : public cmCommand
 {
@@ -107,7 +109,7 @@ public:
     {
     return
       "ENABLE_TESTING()\n"
-      "Enables testing for this directory and below. See also the ADD_TEST command.";
+      "Enables testing for this directory and below. See also the ADD_TEST command. Note that Dart expects to find this file in the build directory root; therefore, this command should be in the source directory root too.";
     }
   
   cmTypeMacro(cmEnableTestingCommand, cmCommand);