vectorgrp / sil-kit

Vector SIL Kit – Open-Source Library for Connecting Software-in-the-Loop Environments
https://vectorgrp.github.io/sil-kit-docs
MIT License
107 stars 32 forks source link

cmake: improve platform/compiler/architecture detection and make cross-building to QNX on Windows possible #137

Closed VDanielEdwards closed 3 weeks ago

VDanielEdwards commented 4 weeks ago

Subject

This PR adapts the platform/compiler/architecture extraction logic to allow cross-builds to QNX on Windows. It also unifies some logic and adds VS2022 detection, with a new fallback for 'unknown' MSVC toolset versions.

It also adapts the QNX toolchain base file to skip settings the rpath on the build-artifacts which is extremely broken on Windows. Since the QNX binaries (e.g., test executables) cannot be executed on the host (not the cross-build target) anyway, this shouldn't break anything.

Description

Instructions for review / testing

Developer checklist (address before review)