This ensures that the correct include and library directories are used
regardless of operating system target by leveraging the built-in
GNUInstallDirs logic for determining the right directory paths.
This also fixes the path for the CMake config module files to use
the right location for header-only libraries.
A pc(5) file for pkgconfig is now also created and installed.
* Initialize missing fields in Lexer constructor
- Add tok_start and pos initialization to Lexer constructor
- Fix clang-tidy uninitialized fields warning
Signed-off-by: Huang Rui <vowstar@gmail.com>
* Fix argument type mismatch for load_file and load_json methods
- Use .string() method for path objects in benchmark file loading
- Apply same path conversion in test cases for consistency
Signed-off-by: Huang Rui <vowstar@gmail.com>
* Fix and cleanup mismatch error in windows test case
- Use .string() method for path objects in benchmark file loading
- Fix test case failure introduced in 65aa8a669d
Signed-off-by: Huang Rui <vowstar@gmail.com>
---------
Signed-off-by: Huang Rui <vowstar@gmail.com>
We need to resets current_block to a nullptr after parsing the template
in `parse_into`, otherwise, current_block will refer to local stack
space after we return from Parser::parse.
* Fixed headers and linter marks applied
Headers were wrong.
Applied some linter suggestions. There are still many left.
* CMake adjusted for single header
CMake can now install the single header.
Removed an unneeded header.
---------
Co-authored-by: Berscheid <1885260+pantor@users.noreply.github.com>
* add and document set_html_autoescape
* add render_to to Environment that accepts a string (and turns it into a Template)
* code style, update single include
* update ci
* revert macos-14 test
---------
Co-authored-by: pantor <lars.berscheid@online.de>