View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0010654CMakeCMakepublic2010-04-30 15:012016-06-10 14:31
ReporterRobert Ioffe 
Assigned ToBill Hoffman 
PrioritynormalSeveritymajorReproducibilityalways
StatusclosedResolutionmoved 
PlatformOSOS Version
Product VersionCMake-2-8 
Target VersionFixed in Version 
Summary0010654: Adding sources to ALL_BUILD project doesn't work in VS2010
DescriptionI have the following command at the top of my project:
add_custom_target(ALL_BUILD SOURCES CMakeLists_linux.cmake CMakeLists_windows.cmake lrb.mak lrb_infrastructure.mak)

This works fine in VS2008 by adding those files to ALL_BUILD project.

It doesn't work anymore in VS2010
TagsNo tags attached.
Attached Files

 Relationships
related to 0011006closedBill Hoffman Visual Studio 10 generator ignores SOURCES of a custom target 

  Notes
(0020499)
Bill Hoffman (manager)
2010-04-30 15:41

That should never have worked in the first place. ALL_BUILD is a special target that you can not change or duplicate.
(0020500)
Robert Ioffe (reporter)
2010-04-30 15:50

Bill, I disagree. It is very useful to add additional files to the top level ALL_BUILD project. Currently, I have the following piece of code in top level CMakeLists.txt:

if(CYGWIN)
  include(CMakeLists_linux.cmake)
else()
  include(CMakeLists_windows.cmake)
endif()

The top level CMakeLists.txt is part of ALL_BUILD project, but how do I make the programmer easily access CMakeLists_linux.cmake and CMakeLists_windows.cmake in Visual Studio? Where do I hang them?

The fact that it worked previously made this use case possible.
(0020511)
Bill Hoffman (manager)
2010-05-02 22:16

It may have been useful, but certainly not expected by the developers...
(0041691)
Kitware Robot (administrator)
2016-06-10 14:27

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.

 Issue History
Date Modified Username Field Change
2010-04-30 15:01 Robert Ioffe New Issue
2010-04-30 15:41 Bill Hoffman Note Added: 0020499
2010-04-30 15:41 Bill Hoffman Status new => assigned
2010-04-30 15:41 Bill Hoffman Assigned To => Bill Hoffman
2010-04-30 15:50 Robert Ioffe Note Added: 0020500
2010-05-02 22:16 Bill Hoffman Note Added: 0020511
2010-12-15 10:42 David Cole Relationship added related to 0011006
2016-06-10 14:27 Kitware Robot Note Added: 0041691
2016-06-10 14:27 Kitware Robot Status assigned => resolved
2016-06-10 14:27 Kitware Robot Resolution open => moved
2016-06-10 14:31 Kitware Robot Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team