View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0001047CMakepublic2004-08-11 03:282005-06-27 11:32
ReporterFelix Woelk 
Assigned ToKen Martin 
PrioritylowSeverityfeatureReproducibilityalways
StatusclosedResolutionno change required 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0001047: add executables excluded from the all target
DescriptionI would appreciate a way of adding targets (executables) to the CMakeLists.txt files in a way that the all target does not depend on them.
In other words, I would like to have a way to add an executable foo which is *only* build if I issue `make foo` and *not* if a simple `make` or `make all` is issued.
TagsNo tags attached.
Attached Files

 Relationships

  Notes
(0002525)

2005-06-20 16:18

I believe you can do this. I haven't verified that this works but the basic approach is:

ADD_EXECUTABLE(foo foo.c)
SET_TARGET_PROPERTIES(foo PROPERTIES IN_ALL FALSE)

Can you give this a try with a CVS CMake? It might work in 2.0.6 as well. If it works I'll add it into the docs somewhere.

Thanks
Ken
(0002526)
Ken Martin (developer)
2005-06-20 16:21

I believe you can do this already, basically

ADD_EXECUTABLE(foo foo.c)
SET_TARGET_PROPERTIES(foo PROPERTIES IN_ALL FALSE)

Can you try this out in CMake CVS? I think it should work. It might even work with CMake 2.0.6.

Thanks
Ken

 Issue History
Date Modified Username Field Change


Copyright © 2000 - 2018 MantisBT Team