Commit e00350b9 authored by Ghislain MARY's avatar Ghislain MARY

Fix getting of the QNX_TARGET environment variable value.

parent e111ed5e
#!/bin/bash
source @BBNDK_ENV_SCRIPT@ && echo $QNX_TARGET
......@@ -40,6 +40,11 @@ execute_process(COMMAND ${CMAKE_CURRENT_BINARY_DIR}/get_qnx_host.sh
OUTPUT_VARIABLE QNX_HOST
OUTPUT_STRIP_TRAILING_WHITESPACE
)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/toolchains/bb10/get_qnx_target.sh.cmake ${CMAKE_CURRENT_BINARY_DIR}/get_qnx_target.sh)
execute_process(COMMAND ${CMAKE_CURRENT_BINARY_DIR}/get_qnx_target.sh
OUTPUT_VARIABLE QNX_TARGET
OUTPUT_STRIP_TRAILING_WHITESPACE
)
file(GLOB COMPILER_PATH "${QNX_HOST}/usr/bin/${COMPILER_PREFIX}*-gcc")
if("${COMPILER_PATH}" STREQUAL "")
......@@ -79,7 +84,7 @@ set(CMAKE_SYSTEM_PROCESSOR ${SYSTEM_PROCESSOR})
CMAKE_FORCE_C_COMPILER(${LINPHONE_BUILDER_TOOLCHAIN_CC} GNU)
CMAKE_FORCE_CXX_COMPILER(${LINPHONE_BUILDER_TOOLCHAIN_CXX} GNU)
set(CMAKE_FIND_ROOT_PATH $ENV{QNX_TARGET} ${CMAKE_INSTALL_PREFIX})
set(CMAKE_FIND_ROOT_PATH ${QNX_TARGET} ${CMAKE_INSTALL_PREFIX})
# search for programs in the build host directories
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment