use COMPILER_LIBCXX LIBECXX instead which gives valid results on systems with either gcc/clang for the base compiler.