Error: target_compile_features no known features for CXX compiler for QNX QCC compiler
target_compile_features does not support the QNX QCC compiler:
# enter QNX env
source /opt/qnx660/qnx660-env.sh
# attempt to build CMake test project (attached to this ticket)
rm tmp/build/* -rf; cmake -DCMAKE_TOOLCHAIN_FILE=../Toolchain-QNX660-armv7.cmake ..; make -j1 VERBOSE=1
-- The CXX compiler identification is QCC 4.7.3
-- Check for working CXX compiler: /opt/qnx660/host/linux/x86/usr/bin/qcc
-- Check for working CXX compiler: /opt/qnx660/host/linux/x86/usr/bin/qcc -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
CMake Error at CMakeLists.txt:5 (target_compile_features):
target_compile_features no known features for CXX compiler
"QCC"
version 4.7.3.
Setting cmake_policy(SET CMP0047 OLD)
does not help either:
...
CMake Error at CMakeLists.txt:5 (target_compile_features):
target_compile_features no known features for CXX compiler
"GNU"
version 4.7.3.
Attachments: Toolchain-QNX660-armv7.cmake CMakeLists.txt main.cpp