summaryrefslogtreecommitdiff
path: root/src/CMakeLists.txt
Commit message (Collapse)AuthorAgeFilesLines
* Add support for hash chaining to detect modifications in postingsJohn Wiegley2024-08-051-1/+2
| | | | | | | | | | | | | | | | | | | The following details of a posting contribute to its hash: fullname of account string representation of amount Each posting hashes contributes to the transaction hash, which is compromised of: previous transaction’s hash (as encountered in parsing order) actual date optional auxiliary date optional code payee hashes of all postings Note that this means that changes in the “code” or any of the comments
* Fix compiler warning about std::binary_functionAlexis Hildebrandt2023-12-121-1/+1
| | | | being deprecated as of C++11
* Merge pull request #2260 from afh/modernize-cmakeAlexis Hildebrandt2023-06-101-3/+3
|\ | | | | cmake: Replace add_defitions with superseding alternatives
| * cmake: Replace add_defitions with superseding alternativesAlexis Hildebrandt2023-06-071-3/+3
| |
* | cmake: Add -fPIC to compile flagsAlexis Hildebrandt2023-06-071-0/+2
|/ | | | | | when building ledger cli. Fixes #1913
* doc: Generate Ledger Python module documentationAlexis Hildebrandt2023-04-251-0/+1
| | | | using pydoc when building web docs.
* Remove support for Python 2.xAlexis Hildebrandt2023-02-011-1/+0
|
* Implement cryptographic access to files using GPGMEMichael Raitza2020-10-301-0/+10
|
* Fix: library path issueHenrik Pingel2020-05-131-0/+1
|
* use built-in cmake precompiled header support when availableAndy Clayton2020-04-021-1/+11
| | | | | | | | | | | | | Ledger supports precompiling headers as a build speed optimization. This is provided via a custom add_pch_rule macro. Similar functionality is now built-in to CMake starting with the 3.16 release in November 2019. Let's use this when available to fix #1774 and start towards not needing to maintain our own implementation. I originally considered removing the macro fallback but in my tests it saves enough build time that I think it is worth keeping for now. Fixes #1774
* Modernize CMake using backported FindPython module.Dimitri John Ledkov2019-12-051-14/+5
|
* Remove the 'org' command, which was always a hack to begin withJohn Wiegley2019-03-151-2/+0
|
* Add Travis CI setup for macOS and homebrew-installed BoostTim Landscheidt2019-01-301-1/+3
| | | | | | | | | | | | | | | | On macOS, CMake detects the Boost.Python component installed by homebrew only when named "python27". Thus this change not only adds a Travis CI setup for macOS, but also a CMake option to switch the component name between "python" and "python27". In addition, precompiling system.hh does not work with the current setup for Clang, so another CMake option to disable it is added. The currently used commands to compile specific versions of Boost do not produce a result that works out of the box on macOS. It should be possible just to mimic homebrew's formula for boost-python (https://github.com/Homebrew/homebrew-core/blob/master/Formula/boost-python.rb), but for the moment on macOS this change tests only against Boost installed by homebrew.
* Use CMAKE_CXX_COMPILER_ID for conditions based on compilerTim Landscheidt2019-01-261-2/+2
| | | | | | | | | CMAKE_CXX_COMPILER is the path to the compiler binary and does not need to follow a specific pattern. For example, on Linux with GCC and without an explicit "-DCMAKE_CXX_COMPILER:PATH=" option, CMAKE_CXX_COMPILER is "/usr/bin/c++" which does not match "g++". CMAKE_CXX_COMPILER_ID however will always reliably be "Clang" or "GNU".
* Compile strptime.cc only on WindowsTim Landscheidt2019-01-161-2/+8
|
* Further simplifications src/CMakeLists.txtJohn Wiegley2016-11-131-5/+3
|
* Disable #pragma messages from ClangJohn Wiegley2016-11-131-0/+1
|
* Escape ++ in cmake matchesJohn Wiegley2016-11-131-1/+1
|
* Don't use -isystem with g++ anymoreJohn Wiegley2016-11-131-1/+1
|
* Change src/CMakeLists.txt to notice c++ as g++John Wiegley2016-11-131-14/+19
|
* Whitespace cleanupJohn Wiegley2015-08-041-4/+4
|
* [cmake] Use CMAKE_SYSTEM_NAME to test the platform.Alexis Hildebrandt2015-07-281-2/+2
| | | | | | APPLE and CMAKE_HOST_APPLE only check the host system, whereas CMAKE_SYSTEM_NAME checks the target system when cross-compiling.
* link ledger executable to PythonTim D. Smith2015-05-091-0/+3
| | | | | Since the ledger executable embeds the Python interpreter, it does need an explicit link to a Python framework on OS X after all.
* [ledger] Remove --cache optionAlexis Hildebrandt2015-02-181-2/+0
| | | | and all boost serialisation related code.
* [cmake] Minor cleanupAlexis Hildebrandt2015-01-201-1/+5
|
* merge double fix + make changes minimalisticHans Erik van Elburg2015-01-041-12/+8
|
* also added cygwin tweak to src/CMakeLists.txtHans Erik van Elburg2015-01-031-2/+12
|
* Cosmetic change - format code consistentlyMartin Michlmayr2014-05-181-10/+10
| | | | | Add a space between if and the opening bracket, between a closing round bracket and the following opening curly bracket, etc.
* Fix build for building with g++ 4.8John Wiegley2014-05-071-0/+2
|
* fix debug build for gccJohann Klähn2014-05-071-1/+0
| | | | -ansi ≡ -std=c++98 ;)
* Replace sha1.cc with boost::uuid::details::sha1David Bremner2014-04-171-4/+2
| | | | | | | | sha1.cc is not redistributable by Debian because the license doesn't permit redistribution of modified versions. This isn't ideal since the ::details namespace is subject to change, but it avoids adding a dependency to ledger.
* CMake: Remove installation of third party codeAlexis Hildebrandt2014-03-101-3/+0
|
* Correctly justify Unicode characters in terminalKan-Ru Chen (陳侃如)2014-02-131-1/+2
| | | | | | | Many Unicode characters take more spaces than one ASCII character. For example, Chinese characters are two characters wide when using monospace font in terminal. This patch use wcwidth of Markus Kuhn to count the correct width for justification.
* Correctly set runtime path on Linux on installAlexis Hildebrandt2014-02-031-1/+1
|
* python module file suffix is platform dependentJohann Klähn2014-02-011-3/+13
|
* Fix shared library and python moduleAlexis Hildebrandt2014-02-011-3/+12
| | | | | Conflicts: src/CMakeLists.txt
* no RENAME option on older CMake versionsJohann Klähn2014-02-011-2/+9
| | | | | The RENAME option for install(TARGETS ...) does not seem to be available on all CMake versions.
* build shared library/python module, clean up CMakeJohann Klähn2014-02-011-15/+33
| | | | | libledger will now be built as a shared library. You can 'import ledger' from python IFF you copy libledger.so to ledger.so or create a symlink.
* Build and shared python moduleAlexis Hildebrandt2014-01-271-0/+9
| | | when building library
* Source changes needed for Microsoft Visual C++ compatibility.Tim Crews2013-06-141-1/+3
| | | | Includes an implementation of strptime, compiled only for Win32 platform.
* Add -Wno-disabled-macro-expansionJohn Wiegley2013-05-191-0/+1
|
* Also using Clang's PCH with my "cxx" compilerJohn Wiegley2012-05-271-1/+1
|
* Make profiling builds work with ClangJohn Wiegley2012-05-201-1/+0
|
* Converted the Ledger build system to use CMakeJohn Wiegley2012-05-201-0/+261