Alexander Neundorf
74750610cf
ENH: determine typesize by compiling a file and reading strings from the compiled output.
...
Tested with various gcc, XCode, MSVC7, sdcc
For OSX when doing TRY_COMPILE() CMAKE_OSX_ARCHITECTURES is used, if there are different results an error is generated. CMAKE_OSX_ARCHITECTURES can be overwritten for the TRY_COMPILES with CMAKE_TRY_COMPILE_OSX_ARCHITECTURES.
Alex
2007-06-04 17:08:46 -04:00
Brad King
e40c51dddf
BUG: Fixed cmCommandArgumentLexer no-escape mode to not match backslash-escape sequences as lexical tokens at all. Needed to configure files with backslashes preceding an @VAR@ replacement. This fixes bug#5130.
2007-06-04 15:57:33 -04:00
Bill Hoffman
64a8eb990a
ENH: add one of the headers to the regular sources
2007-06-04 15:28:05 -04:00
Alexander Neundorf
e9fc2cb086
STYLE: fix typo: now double space after -D
...
Alex
2007-06-04 13:50:34 -04:00
Alexander Neundorf
003654670b
ENH: -U for removing variables now uses globbing expressions
...
-cmCacheManager: now also variables with type UNINITIALIZED are saved in
CMakeCache.txt, these are the vars defined using -DFOO=foo but without type
Alex
2007-06-04 13:48:11 -04:00
Ken Martin
8fdca686b3
ENH: fix passing of time limit to some ctest invocations that also use build-options
2007-06-04 13:39:43 -04:00
Andy Cedilnik
3bcec6e36c
STYLE: Nightly Version update
2007-06-03 10:48:11 -04:00
Bill Hoffman
fe1c4649ef
ENH: remove debug that caused tests to fail
2007-06-02 16:15:01 -04:00
Andy Cedilnik
f1745fbb8d
STYLE: Nightly Version update
2007-06-02 06:33:59 -04:00
Bill Hoffman
fa8f556a9d
ENH: opps
2007-06-01 23:06:14 -04:00
Bill Hoffman
7bdad54614
ENH: initial bullseye stuff
2007-06-01 15:40:07 -04:00
Alexander Neundorf
0be0283f30
BUG: also put a variable into the cache when defined using -D if no type is
...
given, then STRING is used. Also add command line option -U as suggested for
undefining cache variables. This fixes #4896 and #4264 .
Alex
2007-06-01 14:16:46 -04:00
Alexander Neundorf
f94b8cfd3c
COMP: fix warnings on some machines where some X libs apparently don't
...
really work by reverting X11_LIBRARIES back to the old version
-add some more X11_xxx_FOUND variables
-reformat comments at the top
-always use IF(INCLUDE_DIR and LIB) for setting FOUND to TRUE
Alex
2007-06-01 13:17:23 -04:00
Alexander Neundorf
eddf1cf39f
ENH: improve TRY_RUN() for crosscompiling: instead of just failing, it now
...
creates two cache variables, one for the RUN_RESULT, one for the RUN_OUTPUT
(if required), which can be set or preset by the user. It has now also two
new arguments: RUN_OUTPUT_VARIABLE and COMPILE_OUTPUT_VARIABLE (the old
OUTPUT_VARIABLE merges both), so if only COMPILE_OUTPUT_VARIABLE is used the
run time output of the TRY_RUN is unused and the user doesn't have to care
about the output when crosscompiling. This is now used in FindThreads.cmake,
CheckC/CXXSourceRuns.cmake and TestBigEndian.cmake, which used the output
only for the logfile (compile output is still there). Test/TryCompile/ now
also tests the behaviour of OUTPUT_VARIABLE, RUN_OUTPUT_VARIABLE and
COMPILE_OUTPUT_VARIABLE.
Alex
2007-06-01 11:16:29 -04:00
Alexander Neundorf
26a5a295eb
ENH: also handle comments for variables which contain newlines
...
Alex
2007-06-01 11:06:48 -04:00
Bill Hoffman
8cba2c55f9
BUG: fix crash, bug 5121
2007-06-01 09:18:08 -04:00
Andy Cedilnik
fa858bc22c
STYLE: Nightly Version update
2007-05-31 22:06:35 -04:00
Alexander Neundorf
66580ab341
ENH: if get_target_property() doesn't find a target with the given name, it
...
returns now "<NAME_OF_VAR>-NOTFOUND" instead of just "NOTFOUND", which can help
in finding problems
Alex
2007-05-31 12:03:52 -04:00
Ken Martin
2f07e8e8f8
ENH: added new test for SourceFile objects and properties
2007-05-31 10:29:13 -04:00
Alexander Neundorf
5a6a3cd869
ENH: mostly synced with FindX11.cmake from KDE svn: now also searches for a
...
lot of additional X11 libs, like Xv, Xau, Xrandr and others
Alex
2007-05-30 12:09:34 -04:00
Andy Cedilnik
a8d96319bb
STYLE: Nightly Version update
2007-05-30 05:28:09 -04:00
Alexander Neundorf
eed7c8dec1
ENH: always provide CMAKE_SYSTEM_XXX() and MAKE_HOST_SYSTEM_XXX() variables,
...
so when cross compiling the build host platform can be tested
Alex
2007-05-29 11:36:07 -04:00
Alexander Neundorf
cfee916b7c
COMP: less warnings with msvc8
...
Alex
2007-05-29 08:42:39 -04:00
Andy Cedilnik
25c6073080
STYLE: Nightly Version update
2007-05-29 05:26:30 -04:00
Brad King
fac5d4845a
BUG: Finished previous fix.
2007-05-28 17:49:03 -04:00
Brad King
b4fb25941a
COMP: Fixed shadowed local warning.
2007-05-28 13:46:10 -04:00
Brad King
25db01d7c4
ENH: Removed unused methods that should never be used anyway.
2007-05-28 13:32:17 -04:00
Brad King
f944711917
STYLE: Fixed comment for Generate() method.
2007-05-28 12:23:32 -04:00
Brad King
3d822e3a25
ENH: Moved link library related code from GenerateSourceFilesFromSourceLists to AnalyzeLibDependencies to make the former do no more than what its name says.
2007-05-28 12:05:28 -04:00
Brad King
06472d620a
ENH: Added more install rules to increase coverage of the command.
2007-05-28 11:41:29 -04:00
Brad King
09289aadb6
ENH: Removed "Used" mark from custom commands. It is no longer needed or checked by any generators.
2007-05-28 11:18:15 -04:00
Brad King
60f02a27db
ENH: Remove unused build rules from Xcode. This change was made in the VS generators on 2006-03-23 and should have been made for the Xcode generator too. Also commented out some debug print statements.
2007-05-28 11:16:50 -04:00
Brad King
0fa1bd2f71
COMP: Fix build on mac after change to GetSourceFiles signature.
2007-05-28 11:03:11 -04:00
Brad King
14d50b086f
COMP: Fix build of XCode generator after change to GetSourceFiles signature.
2007-05-28 11:02:45 -04:00
Andy Cedilnik
2ea5caf13c
STYLE: Nightly Version update
2007-05-28 11:02:27 -04:00
Brad King
27a0677d3e
COMP: Fix build for windows-only generators after change to GetSourceFiles signature.
2007-05-28 11:00:26 -04:00
Brad King
3f2dd9bc54
ENH: Made cmTarget::GetSourceFiles method return reference to const so addition of cmSourceFile pointers must be done with an access method in cmTarget.
2007-05-28 10:25:03 -04:00
Brad King
ba8ec0d5cf
ENH: Made cmSourceFile::GetDepends return reference to const so dependencies can be added only by an access method in cmSourceFile.
2007-05-28 10:11:44 -04:00
Brad King
d2f62e6ac3
ENH: Made cmTarget::GetSourceLists return a reference to const so that all additions of sources must go through access methods in cmTarget.
2007-05-28 09:59:08 -04:00
Alexander Neundorf
00c9964a8c
COMP: fix warning on MSVC 8: conversion from 'size_t' to 'unsigned int', possible loss of data
...
Alex
2007-05-28 08:31:26 -04:00
Andy Cedilnik
9b5ed0cfa9
STYLE: Nightly Version update
2007-05-27 18:47:09 -04:00
Bill Hoffman
a3d4d549ba
ENH: @ must be escaped in xcode projects
2007-05-27 10:32:22 -04:00
Andy Cedilnik
4168dba9d9
STYLE: Nightly Version update
2007-05-27 04:31:38 -04:00
Andy Cedilnik
123a81088c
STYLE: Nightly Version update
2007-05-26 14:26:00 -04:00
Alexander Neundorf
55f11b348b
ENH: add option to FILE(STRINGS NO_HEX_CONVERSION) to disable automatic
...
conversion of hex and srec files to binary.
Without this automatic conversion, everywhere where a compiled file is parsed for strings the
a file(HEX2BIN somefile binfile) command has to be added otherwise it will
not work for these compilers. I tried this with DetermineCompiler and
CheckTypeSize and nobody will do this except the users who work with such
compilers. For them it will break if they don't add this conversion command
in all these places.
If FILE(STRINGS) is used with a text file, it
will in most cases still work as expected, since it will only convert hex
and srec files. If a user actually wants to get text out of hex files, he
knows what he's doing and will see the hint in the documentation.
Anyway, it should work without having to create a temporary file, will work
on this later.
Alex
2007-05-25 16:46:50 -04:00
Alexander Neundorf
d6f779a9b0
COMP: less warnings (signed vs. unsigned)
...
Alex
2007-05-25 16:23:57 -04:00
Brad King
775f012fae
BUG: Need to create global targets before AddHelperCommands is called. We should investigate creating global targets at the beginning of the configure step even if their commands are not populated or if they will not actually be generated later.
2007-05-25 15:51:33 -04:00
Alexander Neundorf
f4eb541880
ENH: make the compiler id detection work, even if the output file name of
...
the compiler is completely unknown and even if it produces intel hex or
motorola s-record files, with test
Alex
2007-05-25 15:22:22 -04:00
Alexander Neundorf
1ed238c7f5
BUG: remove debug output
...
Alex
2007-05-25 12:05:59 -04:00
Brad King
a99c60b0ed
ENH: Added testing of REGEX option to INSTALL(DIRECTORY). Added tests to cover all forms of old-style install commands.
2007-05-25 11:41:37 -04:00