Skip to content

Instantly share code, notes, and snippets.

@msis
Last active February 4, 2018 23:03
Show Gist options
  • Save msis/b179a77f00b821024023 to your computer and use it in GitHub Desktop.
Save msis/b179a77f00b821024023 to your computer and use it in GitHub Desktop.
[Enable range for loop in C++ from CMakeLists.txt] #Cmake #C++ #for
# when using the new C++11 for loops:
# for (auto i : range) {}
target_compile_features(myapp PRIVATE cxx_range_for)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment