[CMake] Visual Studio rebuilding ZERO_CHECK

Micha Renner Micha.Renner at t-online.de
Wed Jun 13 10:04:39 EDT 2012


Am Mittwoch, den 13.06.2012, 14:51 +0200 schrieb Robert Carnecky:
> Hello,
> 
> My Visual Studio 2010 is constantly prompting me to build ZERO_CHECK 
> every time I try to run my program, even though nothing has changed. Is 
> there a workaround for this?

No, that is the current situation. This problem and some others belong
to a complex of problems which CMake has with Visual Studio since 2008.
May be it becomes better with VS 2012.

Micha


> 
> How to reproduce:
> 1. Set up the simplest project possible (see below).
> 2. Configure and generate using the CMake GUI.
> 3. Open the project file and build the project. Project successfully builds.
> 4. Start the application from within Visual Studio (press F5). A message 
> box appears, saying "This project is out of date: ZERO_CHECK. Would you 
> like to build it?".
> 5. Click on yes. ZERO_CHECK is built, no actual code gets compiled. The 
> application starts and exits.
> 6. Go to step 4 (message box appears again).
> 
> I do not want to enable automatic rebuilds without prompts, since I have 
> other projects where a build can take very long and I do not want to 
> start it when not necessary. Starting a build immediately deletes the 
> executable file and I would not be able to run the last version while 
> making changes to the code.
> 
> Thanks in advance,
> Robert
> 
> 
> CMakeLists.txt:
> project(test)
> cmake_minimum_required (VERSION 2.8.8)
> add_executable(main main.cpp)
> 
> main.cpp:
> int main() {return 0;}
> 
> System:
> CMake 2.8.8
> Visual Studio 2010, 64bit compiler
> Windows 7 64bit
> --
> 
> 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




More information about the CMake mailing list