MantisBT - CMake
View Issue Details
0015520CMakeCMakepublic2015-04-17 16:582016-06-10 14:31
Walter Gray 
Kitware Robot 
normalcrashalways
closedmoved 
Windows Visual Studio 2013Windows8.1
CMake 3.2.2 
 
0015520: AUTORCC fails with multiple .qrc files in the same target
If a target has multiple .qrc files, the corresponding _automoc build step will fail
Create a target with AUTORCC enabled, add 2 .qrc files & attempt to build.
Failure output in VS2013:
Error 1 error MSB4018: The "CustomBuild" task failed unexpectedly.
System.NotSupportedException: The given path's format is not supported.
   at System.Security.Util.StringExpressionSet.CanonicalizePath(String path, Boolean needFullPath)
   at System.Security.Util.StringExpressionSet.CreateListFromExpressions(String[] str, Boolean needFullPath)
   at System.Security.Permissions.FileIOPermission.AddPathList(FileIOPermissionAccess access, AccessControlActions control, String[] pathListOrig, Boolean checkForDuplicates, Boolean needFullPath, Boolean copyPathList)
   at System.Security.Permissions.FileIOPermission..ctor(FileIOPermissionAccess access, String[] pathList, Boolean checkForDuplicates, Boolean needFullPath)
   at System.IO.Path.GetFullPath(String path)
   at Microsoft.Build.CPPTasks.CustomBuild.GetInputs(ITaskItem item)
   at Microsoft.Build.CPPTasks.CustomBuild.BuildExecutionGraph()
   at Microsoft.Build.CPPTasks.CustomBuild.AssignOutOfDateSources(ITaskItem[] sources)
   at Microsoft.Build.CPPTasks.TrackedVCToolTask.ComputeOutOfDateSources()
   at Microsoft.Build.CPPTasks.TrackedVCToolTask.SkipTaskExecution()
   at Microsoft.Build.Utilities.ToolTask.Execute()
   at Microsoft.Build.CPPTasks.TrackedVCToolTask.Execute()
   at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
   at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__20.MoveNext() C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets 170 5 ControlPanelUI_automoc
No tags attached.
related to 0015523closed Brad King ninja AUTORCC with AUTOGEN_TARGET_DEPENDS generated resources 
Issue History
2015-04-17 16:58Walter GrayNew Issue
2015-04-20 10:02Brad KingRelationship addedrelated to 0015523
2015-04-20 15:04Brad KingNote Added: 0038563
2016-06-10 14:29Kitware RobotNote Added: 0042760
2016-06-10 14:29Kitware RobotStatusnew => resolved
2016-06-10 14:29Kitware RobotResolutionopen => moved
2016-06-10 14:29Kitware RobotAssigned To => Kitware Robot
2016-06-10 14:31Kitware RobotStatusresolved => closed

Notes
(0038563)
Brad King   
2015-04-20 15:04   
CMake's test suite has a case like this:

 http://www.cmake.org/gitweb?p=cmake.git;a=blob;f=Tests/QtAutogen/CMakeLists.txt;hb=f438cd37#l82 [^]

The QtAutogen executable has both "test.qrc" and "second_resource.qrc". The test passes for me with VS 2013 using our Git 'master' branch as of commit f438cd37.

Some changes to related infrastructure have been made since 3.2. Please try with a development version built from source or with a recent nightly binary:

 http://www.cmake.org/files/dev/?C=M;O=D [^]
(0042760)
Kitware Robot   
2016-06-10 14:29   
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.