Alex Neundorf
50cd6cef92
Move automoc processing from add_executable/library to cmGlobalGenerator
...
Now automoc is enabled by setting the AUTOMOC target property to true,
instead of using the AUTOMOC keyword in add_executable() or add_library()
Alex
2011-08-16 01:45:05 +02:00
Alex Neundorf
cbaac2a587
Remove trailing whitespace
...
Alex
2011-08-16 01:44:13 +02:00
Alex Neundorf
c27607baf8
Refactor SetupAutomocTarget() so it can be run after creating the target
...
This makes it easier to move it from InitialPass() to some other
location, e.g. FinalPass() or something else.
Alex
2011-08-16 01:27:30 +02:00
Alex Neundorf
24d9b7d745
Remove trailing whitespace
...
Alex
2011-08-16 01:26:02 +02:00
Stephen Kelly
1ae3365e9f
Exclude PGI from exports and deprecated.
2011-08-16 01:21:59 +02:00
Stephen Kelly
f426496055
Exclude cygwin from the hidden visibility feature.
2011-08-16 01:19:37 +02:00
Stephen Kelly
f84c7db592
Don't enable deprecated on old GCC
...
Hopefully a fix for
http://www.cdash.org/CDash/testDetails.php?test=109688480&build=1432057
2011-08-16 01:17:26 +02:00
Stephen Kelly
9672b332b1
Don't enable deprecated on HP.
2011-08-16 01:13:10 +02:00
Alex Neundorf
ec6982dc8c
Disable any STATUS output in --find-package mode
...
Any STATUS output will be fed directly to the compiler, which
will not understand any status messages. Error messages
are fine, since they are errors and it is ok if the compiler
fails in such cases.
Alex
2011-08-16 00:40:59 +02:00
Alex Neundorf
e552ae7cfd
Dont check for -isysroot and -mmacosx-version on OSX in --find-package mode
...
Alex
2011-08-16 00:30:51 +02:00
Alex Neundorf
e589589ab1
Rename helper macros print_compile_flags() to set_compile_flags_var()
...
The same for print_link_flags(), it is now set_link_flags_var().
Both macros don't print anything anymore, this was only in the
beginning.
Alex
2011-08-16 00:22:17 +02:00
Alex Neundorf
aecfc1fd10
Fix test on OpenBSD with BSD make
...
BSD make doesn't seem to support -C, so do not use it,
According to the documentation the working directory is set
to CMAKE_CURRENT_BINARY_DIR anyway, so it should work just the same.
Alex
2011-08-16 00:08:43 +02:00
Alexey Ozeritsky
cfad24a36b
fixed: search of ATLAS library for C/C++-only projects
2011-08-15 17:54:28 +04:00
KWSys Robot
87fa807fd8
KWSys Nightly Date Stamp
2011-08-15 00:13:05 -04:00
Alex Neundorf
58b7fe6545
Use cout instead of printf()
...
Alex
2011-08-14 17:17:01 +02:00
Alex Neundorf
72caf4d178
Add the generated automoc.cpp file to the cleaned files
...
Alex
2011-08-14 17:06:34 +02:00
Alex Neundorf
ddb517d014
Color output when running moc
...
Alex
2011-08-14 16:43:04 +02:00
Alex Neundorf
93032953af
Initialize verbose based onb the env.var.
...
Alex
2011-08-14 15:58:09 +02:00
Alex Neundorf
ace121534d
Move code for parsing a cpp-file from the big loop to separate function
...
Alex
2011-08-14 15:58:09 +02:00
Alex Neundorf
735a5bb321
Fix line lengths
...
Alex
2011-08-14 15:58:09 +02:00
Alex Neundorf
83b730cd1a
Add AUTOMOC to the add_library() command
...
Alex
2011-08-14 15:58:08 +02:00
Alex Neundorf
126c6ead77
Add the cmake module required currently for automoc
...
Alex
2011-08-14 15:58:00 +02:00
Alex Neundorf
de91feb367
Remove the need to check for .h/.cxx during buildtime
...
Instead it now relies on cmake time to put that information
correctly into AutomocInfo.cmake
Alex
2011-08-14 15:53:50 +02:00
Alex Neundorf
d65689a3bd
Add actual automoc code from automoc
...
It already works :-)
Needs more refactoring, e.g. using the cmake facilities to turn a string
into a vector etc.
Also still missing is the part which creates the custom target.
Alex
2011-08-14 15:53:38 +02:00
Stephen Kelly
10d8c446d5
Disable testing of deprecated macros.
...
It is not possible to test for it sanely across multiple ancient
compilers supported by cmake.
2011-08-14 15:45:36 +02:00
Alex Neundorf
d1c0a5fce6
Start implementing skeleton for automoc in cmake
...
Alex
2011-08-14 15:45:13 +02:00
Alex Neundorf
6bb4ca3802
The makefile for the test was kindof wrong
...
Alex
2011-08-14 15:38:24 +02:00
Stephen Kelly
97392a7dd3
Fixup forgotten part of aed84517c9
2011-08-14 15:37:24 +02:00
KWSys Robot
0ee93a81cd
KWSys Nightly Date Stamp
2011-08-14 00:12:36 -04:00
Stephen Kelly
2aeab4f973
Borland can't do deprecated.
2011-08-13 23:49:17 +02:00
Stephen Kelly
c41c68bfa4
Try to error on deprecated on Intel and SunCC.
2011-08-13 23:49:17 +02:00
Stephen Kelly
aed84517c9
Test for deprecated attribute before declspec.
...
The attribute seems more common, and some compilers seem to silently
ignore the declspec.
2011-08-13 22:58:15 +02:00
Stephen Kelly
c448b09ad3
Perform the -Werror test only once.
...
This way, the output of the test should be visible on CDash.
2011-08-13 22:57:55 +02:00
Alexey Ozeritsky
d5e603026b
ACML-GPU supportede
2011-08-13 18:50:57 +04:00
Alexey Ozeritsky
af4c58b3bd
ACML-GPU supported
2011-08-13 17:03:58 +04:00
KWSys Robot
27c8b8b455
KWSys Nightly Date Stamp
2011-08-13 00:13:07 -04:00
David Cole
ac22e2a879
VS9: Add include_directories to midl command lines
...
Makes VS 7, 8 and 9 generators consistent with the VS 10
generator. Adds the "AdditionalIncludeDirectories" attribute
at the vcproj level so that all idl files inherit the /I
command line args.
2011-08-12 17:12:08 -04:00
Stephen Kelly
fb88c6e32a
Add some messaging output to make remaining issues findable.
2011-08-12 11:39:21 +02:00
Stephen Kelly
01e9e983e3
Test -Werror instead of enabling it per compiler.
...
Maybe the Intel compiler supports it too.
2011-08-12 10:47:08 +02:00
Stephen Kelly
9aab2aa77f
Expect the tests to pass if hidden visibilty is not enabled.
2011-08-12 10:42:16 +02:00
KWSys Robot
65ba6da576
KWSys Nightly Date Stamp
2011-08-12 00:14:04 -04:00
Stephen Kelly
856bdb317b
Don't change the expected build result based on the platform.
...
Hopefully the compiler feature tests will cover those cases.
2011-08-12 00:30:31 +02:00
Stephen Kelly
df4615e338
Add the COMPILER_HAS_DEPRECATED only if it has a declspec variant
...
_check_cxx_compiler_attribute does it in the alternative.
2011-08-12 00:23:00 +02:00
Stephen Kelly
78a6e1c122
Exclude the XL compiler from the hidden-visibility test.
2011-08-12 00:18:43 +02:00
Alex Neundorf
fd15b5e1c4
Only run the test if we are using a makefile generator under UNIX
...
Alex
2011-08-11 23:34:25 +02:00
Alex Neundorf
9fc87c6343
Add a test for the new --find-package mode
...
Alex
2011-08-11 23:34:17 +02:00
Alex Neundorf
d3ae0fff7d
Improve documentation for --find-package mode
...
Alex
2011-08-11 22:43:45 +02:00
Alex Neundorf
bf07375264
Add a cmake.m4 for using cmake in autoconf projects instead of pkgconfig
...
This file has been written today from scratch by Matthias Kretz
and it BSD-licensed.
Alex
2011-08-11 22:43:33 +02:00
Stephen Kelly
e1f7ee3de7
Test for compiler features, instead of for specific platforms.
2011-08-11 19:06:23 +02:00
Stephen Kelly
9554e1013e
Split the deprecated available check from setting macro values.
2011-08-11 18:17:12 +02:00