matus-chochlik / oglplus

OGLplus is a collection of open-source, cross-platform libraries which implement an object-oriented facade over the OpenGL® (version 3 and higher) and also OpenAL® (version 1.1) and EGL (version 1.4) C-language APIs. It provides wrappers which automate resource and object management and make the use of these libraries in C++ safer and more convenient.
http://oglplus.org/
Boost Software License 1.0
492 stars 72 forks source link

Fixes cpp_feature_detection on gcc-4.8.5 (and other compilers which don't enable C++11 by default) #137

Closed mattgruenke closed 6 years ago

mattgruenke commented 6 years ago

Since try_compile() doesn't automatically inherit flags like CMAKE_CXX_STANDARD and CMAKE_CXX_STANDARD_REQUIRED, it's necessary to explicitly set them. Without this change, my build fails.

mattgruenke commented 6 years ago

Thanks mate. Cheers!

matus-chochlik commented 6 years ago

No problem, thanks for the PR.