On Mon, Oct 6, 2014 at 5:47 PM, Bill Greene wrote: >>Another thing to try is to run cmake --build . and see if that works. > That appears to compile the lib cpp file and rebuild the library just fine > but it also doesn't re-link the main program.
I also cannot reproduce this from Bill H's example. Both the .lib and .exe file are rebuilt after touching only the lib .cpp file. Try building the main target directly after touching the lib .cpp file: cmake --build . --config Debug --target cmTestMain If that reproduces the issue then we can ask msbuild for verbose logging info. Touch the lib .cpp file again and then run: cmake --build . --config Debug --target cmTestMain -- -verbosity:diag >log 2>&1 The log file will be big and verbose. If you see something stand out in it then please reply with a relevant subset of the log. Otherwise please zip it up and send the log to me and Bill H. off-list since it will likely be too big to attach on-list. Thanks, -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
