mirror of
git://code.qt.io/qt/qt5.git
synced 2026-03-23 06:41:06 +08:00
Also, qnx now builds only using toolchain packages, ignoring host mahcine. Pick-to: 6.2 Task-number: QTQAINFRA-4502 Change-Id: Ifd2f3cf1260b92cee8040e1d2213809bad1b3fc1 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
26 lines
752 B
CMake
26 lines
752 B
CMake
set(CMAKE_SYSTEM_NAME QNX)
|
|
|
|
if (NOT DEFINED CMAKE_FIND_ROOT_PATH_MODE_PROGRAM)
|
|
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
|
|
endif()
|
|
if (NOT DEFINED CMAKE_FIND_ROOT_PATH_MODE_LIBRARY)
|
|
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
|
|
endif()
|
|
if (NOT DEFINED CMAKE_FIND_ROOT_PATH_MODE_PACKAGE)
|
|
set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY)
|
|
endif()
|
|
if (NOT DEFINED CMAKE_FIND_ROOT_PATH_MODE_INCLUDE)
|
|
set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
|
|
endif()
|
|
|
|
set(CMAKE_FIND_ROOT_PATH $ENV{QNX_TARGET}/target/qnx7/)
|
|
|
|
set(_qnx_toolchain_arch gcc_ntox86_64)
|
|
|
|
set(CMAKE_C_COMPILER qcc)
|
|
set(CMAKE_C_COMPILER_TARGET ${_qnx_toolchain_arch})
|
|
set(CMAKE_CXX_COMPILER q++)
|
|
set(CMAKE_CXX_COMPILER_TARGET ${_qnx_toolchain_arch})
|
|
|
|
set(CMAKE_SYSROOT $ENV{QNX_TARGET})
|