PGI Compiler Feature Support Regression [3.14.0-RC1]
Starting in 3.14.0-RC1 the C++ language feature detection for the PGI compiler is failing. Also tried out the IBM xlC compiler which has the same pattern of only meta language features and it works.
Test code:
cmake_minimum_required(VERSION 3.9)
project(scorch)
add_library(foo main.cxx)
target_compile_features(foo PUBLIC cxx_std_11)
CMake Build Output:
[atkins3@gcc2-power8 build]$ rm -rf CMakeFiles/
[atkins3@gcc2-power8 build]$ rm CMakeCache.txt
[atkins3@gcc2-power8 build]$ CXX=/opt/cfarm/pgi/linuxpower/18.10/bin/pgc++ ~/users/robert.maynard/cmake/build/bin/cmake ../
-- The C compiler identification is GNU 4.8.5
-- The CXX compiler identification is PGI 18.10.1
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /opt/cfarm/pgi/linuxpower/18.10/bin/pgc++
-- Check for working CXX compiler: /opt/cfarm/pgi/linuxpower/18.10/bin/pgc++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - failed
CMake Error at CMakeLists.txt:4 (target_compile_features):
target_compile_features no known features for CXX compiler
"PGI"
version 18.10.1.
-- Configuring incomplete, errors occurred!
See also "/home/atkins3/users/robert.maynard/scorch/build/CMakeFiles/CMakeOutput.log".
See also "/home/atkins3/users/robert.maynard/scorch/build/CMakeFiles/CMakeError.log".