Commit Graph

6919 Commits

Author SHA1 Message Date
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 22a1df0576 BUG: Fix FILES mode after recent changes. 2007-05-25 11:08:52 -04:00
Brad King 92ec498b8c BUG: Fixed INSTALL_FILES and INSTALL_PROGRAMS commands to install under the prefix like they did before the recent changes. 2007-05-25 11:01:20 -04:00
Andy Cedilnik 9192d1d153 STYLE: Nightly Version update 2007-05-25 06:55:01 -04:00
Bill Hoffman d0f12061c3 ENH: add copy header stuff 2007-05-24 17:06:32 -04:00
Alexander Neundorf c9aecb91cc STYLE: remove debug output, fix indentation
the tests run again successfully, but since CheckTypeSize will switch to a
TRY_COMPILE soon I will look at it again after this change

Alex
2007-05-24 16:03:39 -04:00
Alexander Neundorf 504ea6df4e COMP: try to fix the test failures on dash2
Alex
2007-05-24 14:30:09 -04:00
Alexander Neundorf 7147c3e1cc ENH: add COPY_FILE argument to TRY_COMPILE, so the compiled executable can
be used e.g. for getting strings out of it.

Alex
2007-05-24 12:06:59 -04:00
Alexander Neundorf 7d7aba292c ENH: add two simple tests for TRY_RUN()
STYLE: create a new base class cmCoreTryCompile, from which
cmTryCompileCommand and cmTryRunCommand are derived, so there are no public
static functions with lots of arguments anymore

Alex
2007-05-24 11:27:51 -04:00
Alexander Neundorf 00e6d62fd1 ENH: move output file search to cmTryCompileCommand.cxx, so it can be used
there too... many public static functions with lots of arguments... :-/

Alex
2007-05-24 08:56:14 -04:00
Alexander Neundorf 79756b0e67 BUG: don't use non-imported target when cross compiling as commands in custom commands
STYLE: remove now invalid comments, use this->

Alex
2007-05-24 08:43:31 -04:00
Alexander Neundorf 1835c327ff STYLE: use "items" instead od "item"
Alex
2007-05-24 08:18:46 -04:00
Andy Cedilnik 4df8826d6c STYLE: Nightly Version update 2007-05-24 05:26:22 -04:00
Brad King 5639c69d39 ENH: Removed unused code now that INSTALL_FILES and INSTALL_PROGRAMS are not targets. 2007-05-23 18:23:17 -04:00
Brad King 9d75da9eaf ENH: Removed unused code now that INSTALL_FILES and INSTALL_PROGRAMS are not targets. 2007-05-23 18:22:52 -04:00
Brad King ea44d68cb6 BUG: Need to use GetRealDependency for custom command file-level dependencies. 2007-05-23 17:21:08 -04:00
Brad King ba7780a3c4 ENH: Fixed INSTALL_FILES and INSTALL_PROGRAMS commands to not create targets. No targets of type cmTarget::INSTALL_FILES or cmTarget::INSTALL_PROGRAMS are created, so we do not need to check for them everywhere anymore. 2007-05-23 15:40:12 -04:00
Brad King c288da754a BUG: Target names in the COMMAND part of a custom command should not create a file-level dependency that forces the command to rerun when the executable target rebuilds, but the target-level dependency should still be created. Target names in a DEPENDS should do both a target-level and file-level dependency. Updated the BuildDepends test to check that this works. 2007-05-23 13:27:00 -04:00
Brad King 702d785c9a BUG: Add ./ to custom command executables in the top of the build tree even when the path is generated by target name replacement. 2007-05-23 12:05:05 -04:00
Alexander Neundorf 526b72e12c COMP: don't user string::clear(), fix warnings about unused variables
Alex
2007-05-23 08:24:29 -04:00
Andy Cedilnik 1d84b36935 STYLE: Nightly Version update 2007-05-22 17:10:02 -04:00
Alexander Neundorf bef8d3580b COMP: compile fix
Alex
2007-05-22 11:05:59 -04:00
Alexander Neundorf b37cc6072f COMP: compile fix and remove warning
Alex
2007-05-22 10:42:37 -04:00
Alexander Neundorf 4878c00905 ENH: add the IMPORT keyword to ADD_EXECUTABLE(), which generates an
"imported" executable target. This can then be used e.g. with
ADD_CUSTOM_COMMAND() to generate stuff. It adds a second container for
"imported" targets, and FindTarget() now takes an additional argument bool
useImportedTargets to specify whether you also want to search in the
imported targets or only in the "normal" targets.

Alex
2007-05-22 10:24:59 -04:00
Andy Cedilnik b759765134 STYLE: Nightly Version update 2007-05-22 04:14:07 -04:00
Andy Cedilnik a7a1e40afa STYLE: Nightly Version update 2007-05-21 05:03:43 -04:00
Andy Cedilnik fe1f147dc0 STYLE: Nightly Version update 2007-05-20 02:39:38 -04:00
Brad King 4259c7c1e4 COMP: Fix for borland now that components list check is const. 2007-05-19 09:55:18 -04:00
Andy Cedilnik 7cd767ca48 STYLE: Nightly Version update 2007-05-18 20:51:40 -04:00
Alexander Neundorf 9670a8c485 ENH: 2nd try to move stripping out of cpack and to install time, now if
CPACK_STRIP_FILES is true (or contains a list of files), everything will be
stripped, if it's empty or false they won't be stripped

Alex
2007-05-18 14:41:09 -04:00
Alexander Neundorf df8f550029 ENH: add install/strip target for makefile generators if strip was found
Alex
2007-05-18 13:43:39 -04:00
Alexander Neundorf a18d286635 ENH: move hack to fix "new cmake on old build tree on OSX doesn't have CMAKE_INSTALL_NAME_TOOL in the cache" from
cmInstallTargetGenerator.cxx to Darwin.cmake

Alex
2007-05-18 11:57:29 -04:00
Alexander Neundorf d64dc9b5bb COMP: force a recompile on VS71
Alex
2007-05-18 11:45:18 -04:00
Brad King 92c0f41251 ENH: Use CMAKE_PLATFORM_IMPLICIT_LINK_DIRECTORIES from platform files to block link directories. 2007-05-18 11:36:23 -04:00
Alexander Neundorf 891f2130cf COMP: fix link rules with nmake, the linker command has to be converted to shortpath form for nmake
Alex
2007-05-18 10:32:22 -04:00
Bill Hoffman fda955e752 STYLE: fix documentation for command 2007-05-18 09:30:21 -04:00
Brad King 07fe611fc6 BUG: Added carrot (^) to characters that need quoting. The solaris shell needs it. 2007-05-18 09:17:36 -04:00
Alexander Neundorf aee311a89d STYLE: fix line lengths
Alex
2007-05-18 08:49:06 -04:00
Brad King 42a272428b BUG: Need to use GetSafeDefinition when assigning to a string. 2007-05-17 17:43:32 -04:00