File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55cmake_minimum_required (VERSION 3.20 )
66
77# Tell CMake we target QNX
8- set (CMAKE_SYSTEM_NAME QNX)
8+ set (CMAKE_SYSTEM_NAME QNX CACHE STRING "" )
99
1010# Expect QNX env to be sourced, so QNX_HOST and QNX_TARGET exist
1111if (NOT DEFINED ENV{QNX_HOST} OR NOT DEFINED ENV{QNX_TARGET})
@@ -30,17 +30,17 @@ else()
3030endif ()
3131
3232# Compilers (use qcc/q++ so the -V variant selects the right GCC/binutils under the hood)
33- set (CMAKE_C_COMPILER qcc)
33+ set (CMAKE_C_COMPILER qcc CACHE FILEPATH "" )
3434set (CMAKE_C_COMPILER_TARGET ${QNX_QCC_VARIANT} )
35- set (CMAKE_CXX_COMPILER q++)
35+ set (CMAKE_CXX_COMPILER q++ CACHE FILEPATH "" )
3636set (CMAKE_CXX_COMPILER_TARGET ${QNX_QCC_VARIANT} )
3737
3838# Sysroot. For QNX, the headers/libs live under $QNX_TARGET/<arch>
3939# Examples:
4040# $QNX_TARGET/aarch64le
4141# $QNX_TARGET/armle-v7
4242# $QNX_TARGET/x86_64
43- set (CMAKE_SYSROOT "$ENV{QNX_TARGET} " )
43+ set (CMAKE_SYSROOT "$ENV{QNX_TARGET} " )
4444set (CMAKE_FIND_ROOT_PATH "${CMAKE_SYSROOT } " CACHE PATH "" )
4545set (CMAKE_PREFIX_PATH ${CMAKE_SYSROOT } /${QNX_SYSROOT_SUFFIX} ; ${CMAKE_SYSROOT } /${QNX_SYSROOT_SUFFIX} /usr)
4646
You can’t perform that action at this time.
0 commit comments