dannyedel / dspdfviewer

Dual-Screen PDF Viewer for latex-beamer
http://dspdfviewer.danny-edel.de
GNU General Public License v2.0
218 stars 27 forks source link

Cleanup c++11 detection #151

Closed dannyedel closed 8 years ago

dannyedel commented 8 years ago

Since I'm dropping support for qt4 in 1.16, we can simpify the c++11 detection used in GCC.

Use CheckCXXCompilerFlag with -std=c++11 and then fallback to -std=c++0x. If both fail, simply give up.

This replaces the large if/else which depends on the knowledge of exact version numbers when gcc added those features.