View Issue Details [ Jump to Notes ] | [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
0011319 | CMake | CMake | public | 2010-10-15 19:19 | 2016-06-10 14:31 | ||||
Reporter | Ivan Shcheklein | ||||||||
Assigned To | Bill Hoffman | ||||||||
Priority | normal | Severity | major | Reproducibility | always | ||||
Status | closed | Resolution | moved | ||||||
Platform | OS | OS Version | |||||||
Product Version | CMake-2-8 | ||||||||
Target Version | Fixed in Version | ||||||||
Summary | 0011319: VS2010 generator failed to create rule file | ||||||||
Description | The following code: set(errdbg_GENERATED ${CMAKE_CURRENT_BINARY_DIR}/errdbg/generated.txt) ADD_CUSTOM_COMMAND( OUTPUT ${errdbg_GENERATED} COMMAND ${CMAKE_COMMAND} -E copy ${PROJECT_SOURCE_DIR}/myfile.txt ${CMAKE_CURRENT_BINARY_DIR}/errdbg/generated.txt DEPENDS ${PROJECT_SOURCE_DIR}/myfile.txt) ADD_CUSTOM_TARGET(${PROJECT_NAME} DEPENDS ${errdbg_GENERATED}) fails to generate errdbg/generated.txt.rule. Which means that VS 2010 is building this project again and again. The following command fixes this (before set): execute_process(COMMAND mkdir ${CMAKE_CURRENT_BINARY_DIR}/errdbg) | ||||||||
Tags | No tags attached. | ||||||||
Attached Files | cmake.zip [^] (1,771 bytes) 2010-10-15 19:19 cmake-new.zip [^] (1,744 bytes) 2010-11-19 14:10 | ||||||||
Relationships | |
Relationships |
Notes | |
(0022506) Bill Hoffman (manager) 2010-10-15 22:15 |
There is a fix for this already in next, please try a nightly CMake binary. |
(0022507) Ivan Shcheklein (reporter) 2010-10-16 07:10 |
Do you mean cmake-2.8.2.20101015-gcde67-win32-x86.exe? I've tried it. It still fails to create the rule file if remove 'mkdir' command from the 'kernel/common/cmakelists.txt'. |
(0022586) Ivan Shcheklein (reporter) 2010-10-21 12:10 |
Doesn't work on 2.8.3-rc3 either. I still get: ========== Build: 1 succeeded, 0 failed, 1 up-to-date, 0 skipped ========== every time I start build. |
(0023451) Ivan Shcheklein (reporter) 2010-11-19 14:12 |
Reattached the file (removed mkdir command to make it reproducible right from the package). Unfortunatelly, bug still reproducible with cmake 2.8.3. Please, let me know if you failed to reproduce. We need this to be fixed since it stops our VS 2010 migration. |
(0025695) David Manura (reporter) 2011-03-08 13:44 edited on: 2011-03-08 13:54 |
I'm seeing something like this too on CMake 2.8.4 / MSVC2010. Create the following CMakeLists.txt file: ############# project(test NONE) cmake_minimum_required(VERSION 2.8) set(name ${CMAKE_CURRENT_BINARY_DIR}/a/b.txt) add_custom_command( OUTPUT ${name} COMMAND ${CMAKE_COMMAND} -E touch ${name} COMMENT "running command" ) add_custom_target(one ALL DEPENDS ${name}) ################## Then run "cmake ." once followed by "msbuild test.sln" multiple times. Each run displays "running command" even though the file "a\b.txt" is created on the first build. Creating an empty "a\b.txt.rule" file (which didn't exist) myself fixes it. If, however, the "name" does not contain a subdirectory: set(name ${CMAKE_CURRENT_BINARY_DIR}/b.txt) cmake *will* create b.txt.rule file, and the "running command" correctly displays only on the first build. The problem does not occur, however, when targeting autotools. |
(0041754) Kitware Robot (administrator) 2016-06-10 14:28 |
Resolving issue as `moved`. This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page. |
Notes |
Issue History | |||
Date Modified | Username | Field | Change |
2010-10-15 19:19 | Ivan Shcheklein | New Issue | |
2010-10-15 19:19 | Ivan Shcheklein | File Added: cmake.zip | |
2010-10-15 22:15 | Bill Hoffman | Note Added: 0022506 | |
2010-10-15 22:15 | Bill Hoffman | Status | new => assigned |
2010-10-15 22:15 | Bill Hoffman | Assigned To | => Bill Hoffman |
2010-10-16 07:10 | Ivan Shcheklein | Note Added: 0022507 | |
2010-10-21 12:10 | Ivan Shcheklein | Note Added: 0022586 | |
2010-11-19 14:10 | Ivan Shcheklein | File Added: cmake-new.zip | |
2010-11-19 14:12 | Ivan Shcheklein | Note Added: 0023451 | |
2011-03-08 13:44 | David Manura | Note Added: 0025695 | |
2011-03-08 13:54 | David Manura | Note Edited: 0025695 | |
2016-06-10 14:28 | Kitware Robot | Note Added: 0041754 | |
2016-06-10 14:28 | Kitware Robot | Status | assigned => resolved |
2016-06-10 14:28 | Kitware Robot | Resolution | open => moved |
2016-06-10 14:31 | Kitware Robot | Status | resolved => closed |
Issue History |
Copyright © 2000 - 2018 MantisBT Team |