summaryrefslogtreecommitdiff
path: root/common_modules/module_lib
diff options
context:
space:
mode:
authorFrédéric Desbiens <[email protected]>2026-05-29 08:50:52 -0400
committerGitHub <[email protected]>2026-05-29 08:50:52 -0400
commit518127b2e9d4f5fb4d9fad5b278cc8daf983b688 (patch)
treebe276e7674e51fcb19a5f3ff7e42d34b4c08a13f /common_modules/module_lib
parentd4b9448f84a108ff027bae1731394fda1a33aeea (diff)
cmake: fixed THREADX_ARCH undefined when building as standalone library (#540)
CMake loads the toolchain file during the first project() call. Variables set in the toolchain (THREADX_ARCH, THREADX_TOOLCHAIN) were therefore not visible before project() was invoked. Commit 2c16114a moved project() after those checks to conditionally select LANGUAGES and CMAKE_TRY_COMPILE_TARGET_TYPE for Windows, which broke standalone builds that rely on the toolchain to supply THREADX_ARCH. Fixed by calling project(threadx LANGUAGES C) first so the toolchain is sourced, then checking THREADX_ARCH, then conditionally enabling ASM via enable_language(ASM) for non-Windows ports. The CMAKE_TRY_COMPILE_TARGET_TYPE override was removed from CMakeLists.txt because every toolchain file in cmake/ already sets it to STATIC_LIBRARY where needed. Co-authored-by: Copilot <[email protected]>
Diffstat (limited to 'common_modules/module_lib')
0 files changed, 0 insertions, 0 deletions