On 01/07/2016 10:36 PM, Mike Fitzgerald wrote:
> I wanted to fix an issue (#13666)

Great!

> 1.) Cloned the git repo, ran bootstrap and make.
> 2.) Wrote some code in cmVisualStudio10TargetGenerator.cxx.
> 
> Running make again didn't seem to recompile anything

On what platform did you build?  That source file is used only on
Windows platforms.  It won't compile at all on Linux or OS X hosts
so it is not expected to re-compile after modification on those
platforms.

> There appears to be a full suite of tests in the Tests folder

After compiling, run

 bin/ctest

to run the tests.  If you used a VS (or Xcode) generator then run

 bin/Debug/ctest -C Debug

where "Debug" is whatever configuration you built after generating.

You don't actually have to use the bootstrap script to build for
development.  You can configure/build CMake with an already-installed
CMake.  This is required on Windows to build with VS.  With this
approach you should run the tests using the ctest that comes next to
the already-installed cmake you ran to configure the build tree.

-Brad

-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake-developers

Reply via email to