First time posting to the list.  I couldn't find an issue tracker or a
place to post a patch (not sure if this is a dev/user or both list).  I've
happily converted over to using CMake from Autotools, and I hope to never
go back.  I use CxxTest, but I'd like to put it in a non-standard location
(it is actually in my source tree to simplify building on Windows).
 CxxTest doesn't appear to have a CXXTEST_ROOT analog of BOOST_ROOT.

I have attached a patch based on the 2.8.6 version and believe it works
correctly.  The version of Ubuntu I'm running doesn't have CxxTest so I
haven't tested it without setting CxxRoot and have it actually work, but
when I set CxxTest it works just fine.

It is not at all obvious to me if I should use HINT or PATH, but I followed
what Boost did in using "HINT".

Not sure what the appropriate method of giving patches is.  If this isn't
the right place a pointer to the correct location would be appreciated.

Best,
   Kirby
--- /home/kbohling.21csi/tmp/cmake-2.8.6/Modules/FindCxxTest.cmake	2011-10-04 11:09:24.000000000 -0500
+++ FindCxxTest.cmake	2011-11-03 16:23:10.918955166 -0500
@@ -158,7 +158,7 @@
 find_package(PythonInterp QUIET)
 find_package(Perl QUIET)
 
-find_path(CXXTEST_INCLUDE_DIR cxxtest/TestSuite.h)
+find_path(CXXTEST_INCLUDE_DIR cxxtest/TestSuite.h HINT ${CXXTEST_ROOT})
 find_program(CXXTEST_PYTHON_TESTGEN_EXECUTABLE cxxtestgen.py
          PATHS ${CXXTEST_INCLUDE_DIR})
 find_program(CXXTEST_PERL_TESTGEN_EXECUTABLE cxxtestgen.pl
--

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://www.cmake.org/mailman/listinfo/cmake

Reply via email to