# qiBuild documentation

# v3.15

## qisys

- Fix ordinal not in range error.

## qipkg

- Add switch to add the worktree snapshot inside the pkg.

## qibuild

- Restrict hardening to Unix systems.

- find.cmake: Fix export_lib_pkgconfig for cross-compiling.

- Add method to get the absolute path of a project with:

      qibuild info --path <project>

- The target defined in the toolchain feed is now propagated to cmake in C++ macros. To use it in your cmakelist:

      if(QI_TOOLCHAIN_TARGET)
        string(TOUPPER ${QI_TOOLCHAIN_TARGET} QI_TOOLCHAIN_TARGET_VALUE)
        message(STATUS "Toolchain target macro available: QI_TOOLCHAIN_TARGET_${QI_TOOLCHAIN_TARGET_VALUE}")
      else()
        message(STATUS "Without toolchain target")
      endif()

  To use it in your code:

      #ifdef QI_TOOLCHAIN_TARGET_ATOM
        qiLogInfo() << "Compiled for target atom";
      #endif
      #ifdef QI_TOOLCHAIN_TARGET_LINUX64
        qiLogInfo() << "Compiled for target linux64";
      #endif

## qitoolchain

- Update toolchain package name convention when make-package is used.
- Add support to make-package from directory.

Changelog CMake index Python index Index