Notes |
|
(0022506)
|
Bill Hoffman
|
2010-10-15 22:15
|
|
There is a fix for this already in next, please try a nightly CMake binary. |
|
|
(0022507)
|
Ivan Shcheklein
|
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
|
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
|
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
|
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
|
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. |
|