Andreas Pakulat wrote: > I'd say an "OR CMAKE_CXX_COMPILER_ID MATCHES 'clang'" should be > sufficient, Actually it would be: CMAKE_CXX_COMPILER_ID MATCHES Clang the CMAKE_CXX_COMPILER_ID is not necessarily the same case as the executable. Thanks, Steve.