mirror of https://github.com/opencv/opencv.git
When compiling with cmake using -DCMAKE_CXX_STANDARD=11 use `-std=gnu++11` for PCH compiler flags, otherwise it triggers an error: opencv_core_Release.gch: not used because `__cplusplus' defined as ` 201103L' not ` 199711L' [-Winvalid-pch] Use CXX_EXTENSIONS property to select `gnu++11` or `c++11`. Trying to mimic cmake logic here: https://gitlab.kitware.com/cmake/cmake/blob/master/Source/cmLocalGenerator.cxx#L1527-1557pull/10604/head
parent
9deaddcdff
commit
2aa18ca3e9
1 changed files with 9 additions and 0 deletions
Loading…
Reference in new issue