CMakeLists.txt


Log

Author Commit Date CI Message
Vicent Marti ab6a3d3d 2011-03-15T03:25:44 Add ZLib as a built-in dependency I don't know if this is good or bad. This lets libgit2 compile cleanly on any platforms without any external dependencies, but adds a little bit of bloat... Let's test this out and see what happens.
Vicent Marti c3a41e5f 2011-03-03T22:01:15 Fix compilation when using CMake in Windows Signed-off-by: Vicent Marti <tanoku@gmail.com>
Vicent Marti 71d33382 2011-03-03T20:20:45 Move the external includes folder from `src` to `include` Signed-off-by: Vicent Marti <tanoku@gmail.com>
Przemyslaw Pawelczyk 20e83aa4 2011-02-08T13:14:19 Further improve SQLite support for CMake users. Unfortunately previous commit was only a partial fix, because it broke SQLite support on platforms w/o pkg-config, e.g. Windows. To be honest I just forgot about messy Windows. Now if there is no pkg-config, then user must provide two variables: SQLITE3_INCLUDE_DIRS and SQLITE3_LIBRARIES if (s)he wants to use SQLite backend. These variables are added to cmake-gui for her/his convenience unless they are set by FindPkgConfig module. pkg-config should work also now in Cygwin.
Przemyslaw Pawelczyk 911fd457 2011-02-08T00:30:08 Fix SQLite support for CMake users. FindPkgConfig obviously uses pkg-config's output for setting convenient variables such as <PREFIX>_LIBRARIES or <PREFIX>_INCLUDE_DIRS. It also sets <PREFIX>_FOUND to 1 if <PREFIX> module exists. So why checking for SQLITE3_FOUND is better than (SQLITE3_LIBRARIES AND SQLITE3_INCLUDE_DIRS)? Apart from obvious readability factor, latter condition has strong assumption that both variables are filled with appropriate paths, which is unjustifiable unless you add another assumptions... pkg-config by default strips -I/usr/include from Cflags and -L/usr/lib from Libs if some environment variables are not set, PKG_CONFIG_ALLOW_SYSTEM_CFLAGS and PKG_CONFIG_ALLOW_SYSTEM_LIBS respectively. This behavior is sane, because it prevents polluting the compilation and linking commands with superfluous entries. In debian SQLITE3_INCLUDE_DIRS is empty for instance. Remark for developers: Always check commands invoked by CMake after changing CMakeLists.txt. VERBOSE=1 cmake --build .
Vicent Marti 9d1dcca2 2011-02-07T10:35:58 Add proper version management We now have proper sonames in Mac OS X and Linux, proper versioning on the pkg-config file and proper DLL naming in Windows. The version of the library is defined exclusively in 'src/git2.h'; the build scripts read it from there automatically. Signed-off-by: Vicent Marti <tanoku@gmail.com>
Vicent Marti 7a689719 2011-02-07T09:14:45 Merge branch 'master' of https://github.com/saschpe/libgit2 into saschpe-master Conflicts: CMakeLists.txt
Vicent Marti f443a879 2011-02-07T08:47:50 Compile the SQLite backend with CMake too Use pkg-config to find the library in Unix systems. In Win32, just set manually the path to your libraries. Signed-off-by: Vicent Marti <tanoku@gmail.com>
Vicent Marti b02c371e 2011-02-02T02:31:58 Build the new test file with CMake too Signed-off-by: Vicent Marti <tanoku@gmail.com>
Sascha Peilicke 2d5ef6ad 2011-01-18T21:35:57 Set proper shared library soname.
Peter Drahoš bfe0658e 2010-12-10T13:29:31 Update install info and test resource path handling
Peter Drahoš 032db4d0 2010-12-07T03:33:43 Reflect the recent changes in header organization (CMake)
Peter Drahos 5b8bb8e7 2010-12-07T00:54:33 Minor modifications for MinGW/Cygwin compatibility.
Peter Drahoš 64840082 2010-12-05T18:38:06 Fix case sensitivity issue.
Peter Drahoš 73c46d53 2010-12-05T18:25:48 Add basic testing support and options to specify install paths
Peter Drahoš 7cbdaf7f 2010-12-05T14:51:10 Add option to select sha1 type in CMake build
Peter Drahoš 583cf169 2010-12-04T17:31:53 Add optional CMake build script.