MantisBT - CMake | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0012499 | CMake | CMake | public | 2011-10-06 12:48 | 2016-06-10 14:31 |
Reporter | James Bigler | ||||
Assigned To | Kitware Robot | ||||
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | moved | ||
Platform | VS 2010 SP1 | OS | Win7x64 | OS Version | |
Product Version | CMake 2.8.6 | ||||
Target Version | Fixed in Version | ||||
Summary | 0012499: VS 2010 custom rules with no output need to not have a command line | ||||
Description | I've noticed with some of my projects that the ZERO_CHECK project always runs. I think I narrowed it down to the fact that the rule for ZERO_CHECK.rule has a command line. The custom build machinery in VS 2010 seems to think that because the Output file, which in this case is non-existent and designed to be that way, needs to be built. D:\WIN7X64\BUGS\CMAKE-EXTRA-BUILD\BUILD-64-VS10\CMAKEFILES\ZERO_CHECK does not exist; source compilation required. (TaskId:14) CMakeFiles\ZERO_CHECK.rule will be compiled. (TaskId:14) If I remove the script from the command line that seems to do nothing, then the build behaves the way that it should. setlocal :cmEnd endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone :cmErrorLevel exit /b %1 :cmDone if %errorlevel% neq 0 goto :VCEnd (TaskId:14) | ||||
Steps To Reproduce | I've attached a simple CMake project. 1. Configure it and build twice. The second build will always build the ZERO_CHECK project. 2. Open the Property Pages for ZERO_CHECK.rule and remove the contents of the Command Line entry. 3. Delete the files in <build>/x64/Debug/ZERO_CHECK/* This is needed to update the custom target files found in this directory that are used by MSbuild to determine dependencies. 4. Build twice. The second build will not rebuild the ZERO_CHECK project. Editing the CMakeLists.txt file will cause a rebuild as expected (though it will overwrite your local changes to the project files). | ||||
Additional Information | |||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | ![]() https://public.kitware.com/Bug/file/4068/cmake-extra-build.7z | ||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2011-10-06 12:48 | James Bigler | New Issue | |||
2011-10-06 12:48 | James Bigler | File Added: cmake-extra-build.7z | |||
2011-10-11 13:04 | David Cole | Assigned To | => David Cole | ||
2011-10-11 13:04 | David Cole | Status | new => assigned | ||
2012-03-15 05:58 | Jan Eric Kyprianidis | Note Added: 0028921 | |||
2012-03-15 05:59 | Jan Eric Kyprianidis | Note Edited: 0028921 | bug_revision_view_page.php?bugnote_id=28921#r573 | ||
2012-08-13 15:40 | David Cole | Status | assigned => backlog | ||
2012-08-13 15:40 | David Cole | Note Added: 0030619 | |||
2012-11-21 14:57 | David Cole | Note Added: 0031652 | |||
2012-11-21 15:01 | David Cole | Assigned To | David Cole => | ||
2016-06-10 14:28 | Kitware Robot | Note Added: 0041910 | |||
2016-06-10 14:28 | Kitware Robot | Status | backlog => resolved | ||
2016-06-10 14:28 | Kitware Robot | Resolution | open => moved | ||
2016-06-10 14:28 | Kitware Robot | Assigned To | => Kitware Robot | ||
2016-06-10 14:31 | Kitware Robot | Status | resolved => closed |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|