MantisBT - CMake
View Issue Details
0010654CMakeCMakepublic2010-04-30 15:012016-06-10 14:31
Robert Ioffe 
Bill Hoffman 
normalmajoralways
closedmoved 
CMake-2-8 
 
0010654: Adding sources to ALL_BUILD project doesn't work in VS2010
I 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
No tags attached.
related to 0011006closed Bill Hoffman Visual Studio 10 generator ignores SOURCES of a custom target 
Issue History
2010-04-30 15:01Robert IoffeNew Issue
2010-04-30 15:41Bill HoffmanNote Added: 0020499
2010-04-30 15:41Bill HoffmanStatusnew => assigned
2010-04-30 15:41Bill HoffmanAssigned To => Bill Hoffman
2010-04-30 15:50Robert IoffeNote Added: 0020500
2010-05-02 22:16Bill HoffmanNote Added: 0020511
2010-12-15 10:42David ColeRelationship addedrelated to 0011006
2016-06-10 14:27Kitware RobotNote Added: 0041691
2016-06-10 14:27Kitware RobotStatusassigned => resolved
2016-06-10 14:27Kitware RobotResolutionopen => moved
2016-06-10 14:31Kitware RobotStatusresolved => closed

Notes
(0020499)
Bill Hoffman   
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   
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   
2010-05-02 22:16   
It may have been useful, but certainly not expected by the developers...
(0041691)
Kitware Robot   
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.