cmake-precompiled-header
cmake-precompiled-header copied to clipboard
Not all flags are getting grabbed.
setting 'CMAKE_CXX_STANDARD' is not being applied to the compiler flags. It causes compilation to fail when using c++11 or greater features.
you need to port this: https://github.com/opencv/opencv/pull/10604
just set add_compile_options(-std=c++11)