summaryrefslogtreecommitdiffstats
path: root/Utilities/cmliblzma/CMakeLists.txt
Commit message (Collapse)AuthorAgeFilesLines
* liblzma: Drop checks for inline and restrict keywordsBrad King2018-08-061-16/+0
| | | | | We now require the compiler to support these, except for MSVC where upstream liblzma already has special cases (in `common/sysdefs.h`).
* liblzma: Name sizeof size_t macro consistently with upstreamBrad King2018-08-061-1/+1
|
* liblzma: Fix HAVE_INLINE and HAVE___INLINE checksBrad King2017-05-171-2/+2
| | | | | | | | | | The checks fail even on compilers that support the keywords because the linkage is broken: src.c:...: undefined reference to 'test' At the actual use sites we use `static inline` instead of just `inline`, so perform the check this way too to fix the linkage.
* cmliblzma: always build as static libraryDaniel Pfeifer2016-06-281-5/+1
|
* liblzma: Disable GNU 3.3 compiler optimizationsBrad King2015-04-081-0/+4
| | | | The GNU 3.3 optimizer causes bad behavior in liblzma, so disable it.
* liblzma: Disable XL compiler optimizations altogetherBrad King2015-04-081-0/+6
| | | | | | | | Revert commit 82c51a8a (liblzma: Disable XL compiler optimizations in one source to avoid crash, 2015-04-02) and instead add a compiler flag to disable optimizations in every source of liblzma. Somehow the XL compiler optimizations create incorrect behavior in liblzma and lead to crashes or truncated output during compression.
* liblzma: fix build on platforms with no SIZE_MAX defined.Chuck Atkins2014-11-031-0/+1
| | | | | | | | | Some systems don't define a SIZE_MAX (older versions of HP-UX with aCC). The logic was already in place to account for this condition but SIZEOF_SIZE_T was not getting cmoputed at configure time to allow it to function. This computes sizeof(size_t) at configure time to allow the appropriate logic to work. It also changes SIZEOF_SIZE_T to SIZE_OF_SIZE_T for consistency.
* Merge topic 'cmake-cmp0054-warnings'Brad King2014-10-211-2/+2
|\ | | | | | | | | 29c3edb8 Avoid if() quoted auto-dereference
| * Avoid if() quoted auto-dereferenceBen Boeckel2014-10-201-2/+2
| | | | | | | | | | | | | | When testing CMAKE_<LANG>_COMPILER_ID values, do not explicitly dereference or quote the variable. We want if() to auto-dereference the variable and not its value. Also replace MATCHES with STREQUAL where equivalent.
* | Remove borland workarounds.Stephen Kelly2014-10-151-2/+0
|/ | | | | CMake 3.0 is the last release to require to be able to build with Borland.
* liblzma: Added a missing config check for _BoolChuck Atkins2014-09-021-1/+5
| | | | | This fixes a current build problem for liblzma on Solaris 10, SPARC, and the Solaris Studio compiler.
* liblzma: Fix compilation with PGI compilerChuck Atkins2014-08-041-3/+9
| | | | | | | | | | | | | | | | | | | | | | - sha265.c is using some C99 specific features, in particular static array dimensions in a function parameter array (see section 6.7.5-7 of the C99 spec). A #ifndef check was in place to prevent compilation under MSVC but it actually needed to check for C99 compliance instead. Even still, the C99 code fails on a few compilers (PGI being one) so for compatibility reasons, the C99 version of the function declaration is removed entirely, leaving only the C89 version. - CHECK_SYMBOL_EXISTS is used to determine the presense of bswap functions from byteswap.h. Most compilers re-dedefine the bswap_N functions as a __bswap_N function implemented by the compiler. Since bswap_N is usually defined as a macro then it's mere presence passes the check. Some versions of the PGI compiler though have shipped broken headers for byteswap.h, in particular 11.3 for x64 linux provides byteswap.h but is missing an associated bits/byteswap.h which causes some of the bswap_N macros to be defined but broken and unusable. The bswap_N checks have been converted to CHECK_SOURCE_COMPILES to ensure that the bswap_N calls are actually usable and not just merely defined.
* liblzma: Disable warnings to avoid changing 3rd party codeBrad King2014-07-291-0/+10
|
* liblzma: Add CMake build systemDaniel Pfeifer2014-07-231-0/+195
Modify sources just enough to build without the full xz common directory.