Commit Graph

24 Commits

Author SHA1 Message Date
Georg Sauthoff
3fa60044e7 don't use variable eval syntax in if()
because it is substituted before if() is executed

cf. the last section of e.g.:
https://cmake.org/cmake/help/v3.1/command/if.html
2016-08-27 15:24:50 +02:00
Georg Sauthoff
e1e3305dbd don't link the tools against the shared library
by default.

reason: to have analogous behavior as with the official makefile

(using a shared library might have the side effect of slower execution)
2016-08-27 15:24:50 +02:00
Georg Sauthoff
b0d42cb7ec remove additional -fPIC switch because
- cmake is smart enough to add this flag on its own (for object files
  that it links into a shared library)
- cmake contains two sets of oject files - the position-dependent ones
  and the position-independent ones - and uses each set accordingly
  (for linking the executable, static library, shared library)
- having an executable that unnecessarily contains position-independent
  code has performance implications
2016-08-27 15:24:50 +02:00
Georg Sauthoff
681d5010d5 use gnu c99 to get both c99 and POSIX
when compiling with gcc

fixes fileno() implicitly defined on Linx and compile error on Solaris 10
2016-08-27 15:24:50 +02:00
Kevin Cernekee
4bda09fc82 cmake: Install liblz4.pc
This performs the same substitutions as lib/Makefile.
2016-04-17 23:11:42 -07:00
Julius Werner
4fcb2e17fb Remove whitespace from ends of lines
I'm trying to import LZ4 code into a project with strict linting
requirements. This will make that easier.

Signed-off-by: Julius Werner <jwerner@chromium.org>
2016-02-12 22:49:52 -08:00
Peter Steinbach
4c9d851eba added static build target for OSX and Linux to cmake 2015-12-15 16:27:46 +01:00
Yann Collet
13f12aa027 Wrapped possibly empty string (Emscripten) with quotes (@Fordi) 2015-08-23 16:16:15 +01:00
Evgeniy Polyakov
a8f33076a3 cmake: when building library make it shared 2015-08-15 21:40:26 +03:00
Evgeniy Polyakov
b4b739c4bf cmake: bump version to the latest release 2015-08-15 21:27:09 +03:00
Todd Lipcon
91138150c6 Fix cmake build to use gnu flags on clang
Previously, the cmake build was only adding -fPIC and -std=c99 on
gcc. However, these flags are also appropriate when building with
clang.
2015-06-25 15:12:40 -07:00
Eric Berge
1e751a74f4 Install the lz4frame.h header in the cmake build 2015-04-28 09:53:08 -05:00
Eric Berge
a9a24e8b7f cmake support for AIX, HPUX, Solaris and Windows
The following changes allow for builds on AIX and HPUX
with the native (non-gcc) compilers, as well as
Visual Studio 2008 and Visual Studio 2012.

Also work around a build error with gcc on Solaris
which fails due to the system detecting an attempt
to use C99 mode with an XPG mode less than XPG6.
2015-04-23 15:59:09 -05:00
Yann Collet
93849d14bc minor CMakeLists update 2015-03-16 11:26:49 +01:00
Yann Collet
471eabe09b Merge pull request #60 from Cyberunner23/master
Removed checking of CMAKE_SYSTEM_PROCESSOR when adding -fPIC, breaks whe...
2015-03-16 11:18:07 +01:00
Cyberunner23
ef029a1b1b Removed checking of CMAKE_SYSTEM_PROCESSOR when adding -fPIC, breaks when that var is '64bit'. 2015-03-15 18:08:32 -04:00
alexDarcy
f2cc4bed93 Updated Cmake configuration for non-gnu compiler 2015-03-11 11:13:20 +01:00
Yann Collet
daa320f3f7 New : lz4frame integrated into liblz4 (v1.5.0) 2014-12-13 15:05:46 +01:00
Yann Collet
d008c87151 New directory structure : library source files into /lib directory 2014-11-30 23:32:12 +01:00
Yann Collet
80030c16ff Update cmakelist to support new lz4io version 2014-11-30 18:04:32 +01:00
Yann Collet
4dbd2faebb Added : cmake test
cmake : corrected xxhash path (thanks to j.magnuson)
2014-11-04 10:50:17 +01:00
Yann Collet
2ac1ee0a45 minor cmake refresh 2014-08-21 01:43:33 +01:00
yann.collet.73@gmail.com
69dc85b8ab Large decompression speed improvement for GCC 32-bits. Thanks to Valery Croizier !
LZ4HC : Compression Level is now a programmable parameter (CLI from 4 to 9)
Separated IO routines from command line (lz4io.c)
Version number into lz4.h (suggested by Francesc Alted)


git-svn-id: https://lz4.googlecode.com/svn/trunk@113 650e7d94-2a16-8b24-b05c-7c0b3f6821cd
2014-02-04 14:11:10 +00:00
yann.collet.73@gmail.com
648678788c Makefile : added capability to install libraries
Modified Directory tree, to better separate libraries from programs.


git-svn-id: https://lz4.googlecode.com/svn/trunk@111 650e7d94-2a16-8b24-b05c-7c0b3f6821cd
2014-01-07 18:47:50 +00:00