Brad King
61e862986a
Factor makefile generator link rule lookup into helper function
...
This provides a place in the makefile generators to adjust the link
rules for both libraries and executables.
2011-12-05 16:37:43 -05:00
Brad King
a603250a13
Load platform files that need to know the ABI when possible
...
Load platform files named in CMAKE_<lang>_ABI_FILES for each language
once the ABI sizeof(void*) is known. During the first configuration
this is after the test for working compiler and ABI detection checks.
During later configurations the ABI information is immediately available
because it has been saved in CMake<lang>Compiler.cmake.
2011-12-05 16:35:42 -05:00
KWSys Robot
89f6fbaae3
KWSys Nightly Date Stamp
2011-11-29 00:05:04 -05:00
KWSys Robot
912c02c682
KWSys Nightly Date Stamp
2011-11-28 00:05:05 -05:00
KWSys Robot
10c3113464
KWSys Nightly Date Stamp
2011-11-27 00:05:05 -05:00
KWSys Robot
66f44dcdf4
KWSys Nightly Date Stamp
2011-11-26 00:05:08 -05:00
KWSys Robot
d63af6df7c
KWSys Nightly Date Stamp
2011-11-25 00:05:06 -05:00
KWSys Robot
27e6ea9d2a
KWSys Nightly Date Stamp
2011-11-24 00:05:05 -05:00
David Cole
7ed2ed9a2e
Merge topic 'CheckImportedFileExistenceInConfigDotCMakeFiles'
...
5c03438
install(EXPORT): Improve target import failure message format
a2be068
install(EXPORT): Enforce existence of imported target files
2011-11-23 08:16:15 -05:00
David Cole
1ec3801a3a
Merge topic 'target-link-libraries-interfaces'
...
b1f12f8
target_link_libraries: Simplify argument processing state tests
5fc95df
target_link_libraries: Add missing space in documentation
9143822
target_link_libraries: Add LINK_(PUBLIC|PRIVATE) options
cf64218
target_link_libraries: Trim trailing whitespace
2011-11-23 08:16:10 -05:00
KWSys Robot
57a85237ac
KWSys Nightly Date Stamp
2011-11-23 00:05:08 -05:00
Brad King
b1f12f8042
target_link_libraries: Simplify argument processing state tests
...
Remove extra parens in test for not handling LINK_INTERFACE_LIBRARIES.
Remove redundant test for equality with ProcessingPrivateInterface
subsumed by test for inequality with ProcessingPublicInterface.
2011-11-22 17:21:36 -05:00
Brad King
5fc95dff46
target_link_libraries: Add missing space in documentation
...
Change "thelink" to "the link".
2011-11-22 17:19:04 -05:00
Stephen Kelly
914382224d
target_link_libraries: Add LINK_(PUBLIC|PRIVATE) options
...
Makes it possible to specify the link dependencies and link
interfaces in one command without repetition.
2011-11-22 16:52:35 -05:00
Stephen Kelly
cf64218eeb
target_link_libraries: Trim trailing whitespace
2011-11-22 16:52:27 -05:00
David Cole
d9df0cca66
Merge topic 'crypto-hash'
...
0599c5f
sha2: Zero entire SHA_CTX structure during cleanup
0a6705c
sha2: Suppress -Wcast-align warning from Clang
24b1feb
sha2: Cast safe conversions to smaller integer types
1ec3fa0
Merge branch 'update-KWIML' into crypto-hash
6495b59
cmCryptoHash: Add virtual destructor
8302608
Fix CMake.File hash test for CRLF checkouts
9fb1a9c
sha2: Wrap long lines in third-party declarations
b0853b5
Disable file() and string() hash commands during bootstrap
9da8340
sha2: Suppress Borland warnings in third-party code
23b3df7
sha2: Use KWIML fixed-size integer constant macros
2e9c26c
Add string(MD5) and string(SHA*) commands to compute hashes
293a7f4
cmCryptoHash: Provide factory "New" method
46ab056
sha2: Use "static const" instead of "const static" declarations
38771d3
Add file(SHA*) commands to compute cryptographic hashes
73efd4a
sha2: Build as part of CMakeLib
c1856a3
sha2: Use KWIML fixed-size integer types and endian-ness
fcc3ce5
Merge branch 'import-sha2' into crypto-hash
042f796
Add file(MD5) command to compute cryptographic hash
ed7cef5
Factor Compute(File|String)MD5 into cmCryptoHash helper
8251b20
Import sha2 implementation 1.1 from Aaron D. Gifford
9912c41
Import sha2 implementation 1.0 from Aaron D. Gifford
2011-11-22 16:24:21 -05:00
David Cole
7b1b13c8f0
Merge topic 'EclipseImprovedSourceProject'
...
982b766
Eclipse: use new variable CMAKE_ECLIPSE_GENERATE_SOURCE_PROJECT
1110e45
Eclipse: create links to subprojects also in the source-project (#12579 )
2011-11-22 16:23:56 -05:00
David Cole
f0419b439a
Merge topic 'fix-11792-improve-ctest-site-handling'
...
92af1da
CTest: Disallow problem chars in build and site names (#11792 )
2011-11-22 16:23:48 -05:00
David Cole
636740c478
Merge topic 'fix-12445-add-call-for-batch-files-vs10'
...
46c7054
VS: Use "call " keyword with .cmd and .bat file custom commands (#12445 )
2011-11-22 16:23:23 -05:00
Brad King
5c03438661
install(EXPORT): Improve target import failure message format
2011-11-22 15:55:04 -05:00
Alex Neundorf
a2be068c75
install(EXPORT): Enforce existence of imported target files
...
Typical <package>Config.cmake files for find_package() rely only on the
files generated by install(EXPORT). They might be wrong, for whatever
reasons, like people manually deleted files, projects were packaged
wrong by distributions, whatever. To protect against this, add checks
that the file locations we are importing actually exist on disk.
Alex
2011-11-22 15:55:00 -05:00
KWSys Robot
3bbe46daa2
KWSys Nightly Date Stamp
2011-11-22 00:05:06 -05:00
KWSys Robot
ad9bffdc3c
KWSys Nightly Date Stamp
2011-11-21 00:05:04 -05:00
KWSys Robot
6580434f16
KWSys Nightly Date Stamp
2011-11-20 00:05:04 -05:00
Alex Neundorf
982b766f29
Eclipse: use new variable CMAKE_ECLIPSE_GENERATE_SOURCE_PROJECT
...
Previously ECLIPSE_CDT4_GENERATE_SOURCE_PROJECT was used, but the
new name CMAKE_ECLIPSE_GENERATE_SOURCE_PROJECT is more in line with
the general naming conventions in cmake, and, more importantly IMO,
in cmake-gui it now appears right next to the other eclipse-related
variables, which all start with CMAKE_ECLIPSE_.
A warning is printed if the old variable is TRUE and the new one isn't,
so users should notice that they have to enable the new one.
Alex
2011-11-19 11:18:51 +01:00
Alex Neundorf
1110e455c2
Eclipse: create links to subprojects also in the source-project ( #12579 )
...
Alex
2011-11-19 11:01:03 +01:00
KWSys Robot
fa878d27bf
KWSys Nightly Date Stamp
2011-11-19 00:05:04 -05:00
David Cole
92af1dad06
CTest: Disallow problem chars in build and site names ( #11792 )
...
Also, use "(empty)" rather than actually sending an empty string
if build or site name is not set properly.
2011-11-18 17:13:07 -05:00
David Cole
46c70540ed
VS: Use "call " keyword with .cmd and .bat file custom commands ( #12445 )
...
Similar fix to commit d093abef
for the Makefile generators. Prevents
premature exit from sequence of commands. Even when no errors occur,
the previous construct without "call " was exiting the sequence before
executing the full set of commands...
2011-11-18 10:15:58 -05:00
KWSys Robot
8e1bbee4d9
KWSys Nightly Date Stamp
2011-11-18 00:05:04 -05:00
Brad King
0599c5f546
sha2: Zero entire SHA_CTX structure during cleanup
...
Convert lines of the form
MEMSET_BZERO(context, sizeof(context));
to the correct form
MEMSET_BZERO(context, sizeof(*context));
as suggested by Clang.
2011-11-17 11:18:08 -05:00
Brad King
0a6705cbda
sha2: Suppress -Wcast-align warning from Clang
...
The code does contain a cast that increases alignment but only for
pointers into structures known to be sufficiently aligned.
2011-11-17 11:12:00 -05:00
Brad King
24b1feb5ca
sha2: Cast safe conversions to smaller integer types
...
Add a cast to lines converting "uint64_t" to "unsigned int" that are
known safe due to use of modulus with a small integer. This avoids
compiler warnings such as
conversion from 'cm_sha2_uint64_t' to 'unsigned int',
possible loss of data
from MSVC.
2011-11-17 11:07:43 -05:00
Brad King
1ec3fa00c9
Merge branch 'update-KWIML' into crypto-hash
2011-11-17 10:19:36 -05:00
KWSys Robot
21469b65dd
KWSys Nightly Date Stamp
2011-11-17 00:05:11 -05:00
Brad King
6495b595c4
cmCryptoHash: Add virtual destructor
...
Instances of this class are always subclasses. Use a virtual destructor
to ensure the subclasses cleanup correctly.
2011-11-16 11:32:01 -05:00
Brad King
9fb1a9cf1d
sha2: Wrap long lines in third-party declarations
2011-11-16 11:05:13 -05:00
Brad King
b0853b5fae
Disable file() and string() hash commands during bootstrap
...
We do not compile support for the cryptographic hashes during bootstrap.
Disable the APIs that use them.
2011-11-16 11:03:30 -05:00
Brad King
9da8340a6d
sha2: Suppress Borland warnings in third-party code
...
The sha2 implementation performs cleanup on local variables. Suppress
the warning instead of fixing it to minimize modification.
2011-11-16 10:54:56 -05:00
Brad King
23b3df76a0
sha2: Use KWIML fixed-size integer constant macros
...
Define SHA_UINT32_C and SHA_UINT64_C using the KWIML versions.
Use them in place of hard-coded UL and ULL constant suffixes.
2011-11-16 10:48:10 -05:00
Brad King
2e9c26cf96
Add string(MD5) and string(SHA*) commands to compute hashes
...
Provide a CMake-language binding to these cryptographic hashes. Add a
string() command API for MD5, SHA1, SHA224, SHA256, SHA384, and SHA512.
2011-11-16 10:29:35 -05:00
Brad King
293a7f4e2a
cmCryptoHash: Provide factory "New" method
...
Construct a cmCryptoHash subclass instance based on the name of the
desired hash algorithm.
2011-11-16 10:15:44 -05:00
Brad King
46ab0561fc
sha2: Use "static const" instead of "const static" declarations
...
Fix old-style declarations in the original code.
2011-11-16 10:15:44 -05:00
Brad King
38771d3bdf
Add file(SHA*) commands to compute cryptographic hashes
...
Add a file() command API for SHA1, SHA224, SHA256, SHA384, and SHA512.
2011-11-16 10:15:44 -05:00
Brad King
73efd4a504
sha2: Build as part of CMakeLib
...
Mangle sha2 symbols to avoid conflict with system libs.
2011-11-16 10:15:44 -05:00
Brad King
c1856a33d4
sha2: Use KWIML fixed-size integer types and endian-ness
...
These are more portable than those named in the original sha2 code.
2011-11-16 10:15:44 -05:00
Brad King
fcc3ce5b0d
Merge branch 'import-sha2' into crypto-hash
2011-11-16 10:15:13 -05:00
Brad King
042f7965c3
Add file(MD5) command to compute cryptographic hash
...
Provide a CMake-language binding to the md5sum function previously
available only by "cmake -E md5sum".
2011-11-16 10:15:01 -05:00
Brad King
ed7cef5634
Factor Compute(File|String)MD5 into cmCryptoHash helper
...
Define an abstract API around the backend hash algorithm. Expose
ifstream errors to HashFile callers. Always try opening the file.
Succeed only if the end of file is reached without error.
2011-11-16 10:14:53 -05:00
KWSys Robot
cbf453eeb6
KWSys Nightly Date Stamp
2011-11-16 03:25:07 -05:00