12388 Commits

Author SHA1 Message Date
Alex Neundorf
66bd543b9b Eclipse: fix #12417, don't create wrong src pathentries
Actually the Eclipse generator now does not create any CDT_SOURCE
pathentries anymore, since I was not able to find out what they are
good for, not even by asking on the cdt-dev mailing list.

So, at least the warning from eclipse about bad pathentries are gone
this way, and I didn't see anything which was not working anymore.
Let's see whether we can find out what they are good for.

Alex
2011-10-23 14:58:52 +02:00
Alex Neundorf
117f2b8257 Eclipse: add Build and Clean targets to targets
With this commit the virtual folder for the targets now
have "Build" and "Clean" targets associated to them, so you can
build and clean per-target now in the project explorer.

Alex
2011-10-23 12:25:33 +02:00
Alex Neundorf
c3f30bdd63 Eclipse: move code for generating links to targets into separate function
Alex
2011-10-23 12:22:20 +02:00
Alex Neundorf
cef6bd94d7 Eclipse: move code for generating links to projects into separate function
Alex
2011-10-23 11:00:45 +02:00
KWSys Robot
a390d6cc89 KWSys Nightly Date Stamp 2011-10-23 00:56:13 -04:00
Alex Neundorf
5e8e9ad68c automoc: always run moc on the cpp file if there is a foo.moc included
This makes automoc behaves as the documentation says.
If there is a #include "foo.moc" in the source file, moc
will be executed on foo.cpp.
Before it was also executed on foo.cpp, but only if foo.cpp
contained a Q_OBJECT macro, otherwise moc was executed on
foo.h. This was confusing, and this change also shouldn't break
anything, since the headers are moc'ed anyway if they contain
a Q_OBJECT macro.

Alex
2011-10-22 21:16:39 +02:00
Alex Neundorf
ea8ac9f5dc Add copyright notices
Alex
2011-10-22 19:43:34 +02:00
Alex Neundorf
56aa6ffae7 automoc:run moc on the header if the source file contains include "foo.moc"
This fixes #12533.
Before automoc did not check the header if the source file contained a
statement, now it does.
Additionally, moc is now only run on explicitely listed headers which
contain a Q_OBJECT macro.

Alex
2011-10-22 19:38:39 +02:00
David Cole
2f309cba45 CTest: Add COVERAGE_EXTRA_FLAGS cache variable (#12490)
COVERAGE_EXTRA_FLAGS is a space separated value of extra flags
that will be passed to gcov when ctest's coverage handler invokes
gcov to do coverage analysis.

Map to CoverageExtraFlags in the CTest ini file. Use default value
of "-l" to match the coverage handler's earlier behavior from ctest
2.8.4 and earlier. The fix for related issue #11717 had added a " -p"
which was the cause of both #12415 and #12490. Here, we revert that
change to the default value, so -p is no longer there by default.
The people that care to add -p may do so in their own build trees
by appending " -p" to the new cache variable COVERAGE_EXTRA_FLAGS.
2011-10-22 11:01:58 -04:00
KWSys Robot
af772893b8 KWSys Nightly Date Stamp 2011-10-22 00:10:10 -04:00
KWSys Robot
b9e9ad57fa KWSys Nightly Date Stamp 2011-10-21 00:10:15 -04:00
Johan Bjork
5a94d099dd Xcode: Avoid spewing the environment on every script run (#12522)
This is the prefered way to get rid of the 'setenv XXX' output,
instead of stripping it in the cmakexbuild wrapper.
2011-10-20 19:14:28 -04:00
David Cole
f0d66ab40a VS11: Fix comment generated at the top of *.sln files
With "Visual Studio 2011" the launcher does not recognize the version
of the *.sln files. With "Visual Studio 11" it does.
2011-10-20 18:48:26 -04:00
KWSys Robot
173fb485f0 KWSys Nightly Date Stamp 2011-10-20 00:08:06 -04:00
Alex Neundorf
b6d4de7911 Eclipse: add virtual folder for each target
For each target a virtual folder is created, which contains
one virtual folder for each sourcegroup, which contain
links to the actual source files (#12294, #12223)

Alex
2011-10-19 22:02:14 +02:00
KWSys Robot
1b6c33f798 KWSys Nightly Date Stamp 2011-10-19 00:09:45 -04:00
David Cole
049d2bc77d Merge topic 'DetectEclipseVersion'
dcd2459 Eclipse: better message when Eclipse version could not be determined
b4b2fc3 Eclipse: don't create VirtualFolders if not supported
5b200e3 Detect whether the current Eclipse version supports VirtualFolders
4974ec9 Eclipse generator: detect Eclipse version
2011-10-18 15:04:22 -04:00
David Cole
1322c416dd Merge topic 'fix-12517-ctest-crash'
7041cd6 CTest: Fix crash when variables are not defined
2011-10-18 15:04:05 -04:00
David Cole
56b153d3e5 Merge topic 'vs10-nologo-issue-12504'
25116a3 Fix CMAKE_VERBOSE_MAKEFILE for VS10 vcxproj files (#12504)
2011-10-18 15:02:38 -04:00
KWSys Robot
fa7a747b33 KWSys Nightly Date Stamp 2011-10-18 00:10:11 -04:00
KWSys Robot
c6e7487499 KWSys Nightly Date Stamp 2011-10-17 00:09:44 -04:00
KWSys Robot
80621968ea KWSys Nightly Date Stamp 2011-10-16 00:10:00 -04:00
Alex Neundorf
b4b2fc33f9 Eclipse: don't create VirtualFolders if not supported
Eclipse versions before 3.6 (Helios) did not support
VirtualFolders yet (#12479), so only create them if Eclipse
is new enough.

Alex
2011-10-15 21:03:14 +02:00
Alex Neundorf
5b200e3bed Detect whether the current Eclipse version supports VirtualFolders
VirtualFolders are supported since 3.6 (Helios).
Next patch will be to actually make use of the new flag
SupportsVirtualFolders.

Alex
2011-10-15 19:40:21 +02:00
KWSys Robot
eb11e0b9ac KWSys Nightly Date Stamp 2011-10-15 00:10:02 -04:00
David Cole
7041cd6a88 CTest: Fix crash when variables are not defined
Avoiding dereference of NULL pointers is always good.
2011-10-14 07:46:01 -04:00
KWSys Robot
6eb2d79d72 KWSys Nightly Date Stamp 2011-10-14 00:10:10 -04:00
KWSys Robot
731d61d8d9 KWSys Nightly Date Stamp 2011-10-13 00:10:00 -04:00
KWSys Robot
83e4a45609 KWSys Nightly Date Stamp 2011-10-12 00:09:42 -04:00
Niels Dekker
25116a3cc2 Fix CMAKE_VERBOSE_MAKEFILE for VS10 vcxproj files (#12504) 2011-10-11 17:07:53 -04:00
David Cole
1226404545 Merge topic 'ninja-generator-prep'
32f8437 Fix line-too-long style violations
029ab31 Constify XCode generator getters to match cmGlobalGenerator
fec4b63 Fix configuration-dependent flag lookup in cmLocalGenerator::GetTargetFlags
557956f Introduce a cmGlobalGenerator::ResolveLanguageCompiler function
5b114c9 Introduce a cmLocalGenerator::ConvertToIncludeReference function
903d914 Make cmLocalGenerator::ConvertToLinkReference virtual
8a0eb78 Constify many getters of cmGlobalGenerator.
4532d36 Add const versions of some getters.
3db2973 Refactor TargetTypeNames.
2011-10-11 14:45:35 -04:00
David Cole
c8e92de286 Merge topic 'DependencyScanningForASM'
e36a1be fix #12262: use the C dependency scanner also for ASM files
2011-10-11 14:45:27 -04:00
David Cole
296fde32dd Merge topic 'CodeBlocks-quoting'
240d39a Fix XML safety issue with adding preprocessor defines in CodeBlocks project.
2011-10-11 14:45:17 -04:00
David Cole
3ece15b8f9 Merge topic 'HandleCMAKE_CXX_COMPILER_ARG1InEclipse'
3df49dc fix #12392: handle CMAKE_CXX_COMPILER_ARG1 for Eclipse projects
2011-10-11 14:45:09 -04:00
David Cole
4daef775f5 Merge topic 'refactor-find-search-paths'
b0cd630 Refactor find_* command final path list computation
2011-10-11 14:45:00 -04:00
KWSys Robot
fac6e2ef44 KWSys Nightly Date Stamp 2011-10-11 00:09:47 -04:00
Brad King
32f8437bbf Fix line-too-long style violations
Commit 8a0eb78f (Constify many getters of cmGlobalGenerator, 2011-03-26)
added const qualifiers to many cmGlobalGenerator methods but left the
resulting lines beyond our style's limit of 79 characters.
2011-10-10 09:46:27 -04:00
KWSys Robot
d1f5a3bff9 KWSys Nightly Date Stamp 2011-10-10 00:09:36 -04:00
KWSys Robot
d17ab57c53 KWSys Nightly Date Stamp 2011-10-09 00:09:32 -04:00
KWSys Robot
48171cefb5 KWSys Nightly Date Stamp 2011-10-08 00:10:17 -04:00
Brad King
029ab3102e Constify XCode generator getters to match cmGlobalGenerator
Commit 8a0eb78f (Constify many getters of cmGlobalGenerator, 2011-03-26)
added const qualifiers to many cmGlobalGenerator methods.  Fix the
signature of the virtual function overrides in cmGlobalXCodeGenerator to
match.
2011-10-07 08:22:05 -04:00
KWSys Robot
783da62f2e KWSys Nightly Date Stamp 2011-10-07 00:09:53 -04:00
KWSys Robot
61c69d3fbb KWSys Nightly Date Stamp 2011-10-06 00:05:17 -04:00
Alex Neundorf
e36a1be466 fix #12262: use the C dependency scanner also for ASM files
Files for the ASM language are those assembler files which are processed
by the C/CXX compiler, and they may contain preprocessor directives, so
run the C dependency scanner also on them.

Alex
2011-10-05 21:51:35 +02:00
Clinton Stimpson
240d39a6a4 Fix XML safety issue with adding preprocessor defines in CodeBlocks project. 2011-10-05 10:02:32 -06:00
KWSys Robot
ab97790c33 KWSys Nightly Date Stamp 2011-10-05 00:07:09 -04:00
KWSys Robot
80a0e2c344 KWSys Nightly Date Stamp 2011-10-04 00:09:40 -04:00
David Cole
68e43c2fad Merge topic 'fix_intel_vs_version'
8f1ee51 Also, check for 11.x as an intel fortran version.
0cd3606 Use version 11.0 for 12.x and 9.10 for 10.x intel versions to fix 12.1 vsIDE.
2011-10-03 11:54:15 -04:00
KWSys Robot
a92b17e421 KWSys Nightly Date Stamp 2011-10-03 00:09:33 -04:00
Peter Collingbourne
fec4b63714 Fix configuration-dependent flag lookup in cmLocalGenerator::GetTargetFlags
Specifically, perform configuration-dependent lookup of
STATIC_LIBRARY_FLAGS for static libraries, and use the correct prefix
for configuration-dependent lookup of LINK_FLAGS (i.e. "LINK_FLAGS_",
as opposed to the value of the LINK_FLAGS property).
2011-10-02 18:30:43 +01:00