View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0013141CMakeCMakepublic2012-04-17 16:592013-01-09 10:55
ReporterErik Jensen 
Assigned ToBrad King 
PrioritynormalSeveritytweakReproducibilityN/A
StatusclosedResolutionfixed 
PlatformVisual Studio 2010OSWindowsOS Version7 x64
Product VersionCMake 2.8.7 
Target VersionCMake 2.8.9Fixed in VersionCMake 2.8.9 
Summary0013141: Segregate .rule files in Visual Studio 2010 build tree
DescriptionOne of the targets in my project involved copying a bunch of files into a directory and then package up the directory. To copy the files on an if-changed basis, I am using add_custom_command.

Because Visual Studio 2010 requires custom commands to have files to hang on, CMake creates a number of .rule files for this purpose. Unfortunately, CMake creates these files in the output directory (they are given the same location and name as the command's output, with '.rule' appended), causing them to end up in the resulting package.

My proposal would be to put all .rule files inside CMakeFiles (the .rule files for custom targets already go there, just not for custom commands).
TagsNo tags attached.
Attached Files

 Relationships

  Notes
(0029208)
Brad King (manager)
2012-04-18 09:24

Hiding .rule files sounds good.

Meanwhile one may work around this problem by using the MAIN_DEPENDENCY option to specify a different place to attach the rule instead of generating a .rule file.
(0029229)
Brad King (manager)
2012-04-19 07:51

This issue prompted some cleanup work needed w.r.t. the .rule files anyway. After two cleanup commits here is a fix for this issue:

 http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=72333a46 [^]
(0032022)
Robert Maynard (manager)
2013-01-09 10:55

Closing resolved issues that have not been updated in more than 4 months.

 Issue History
Date Modified Username Field Change
2012-04-17 16:59 Erik Jensen New Issue
2012-04-18 09:24 Brad King Note Added: 0029208
2012-04-19 07:51 Brad King Note Added: 0029229
2012-04-19 07:51 Brad King Status new => resolved
2012-04-19 07:51 Brad King Resolution open => fixed
2012-04-19 07:51 Brad King Assigned To => Brad King
2012-08-09 17:00 David Cole Fixed in Version => CMake 2.8.9
2012-08-09 17:00 David Cole Target Version => CMake 2.8.9
2013-01-09 10:55 Robert Maynard Note Added: 0032022
2013-01-09 10:55 Robert Maynard Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team