Created
May 3, 2019 14:23
-
-
Save ChristosT/1899aa28ded418c82a3adb1a2f0031c2 to your computer and use it in GitHub Desktop.
Support CMAKE_CXX_STANDARD in older cmake versions
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| if (CMAKE_VERSION VERSION_LESS "3.1") | |
| set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11") | |
| else () | |
| set (CMAKE_CXX_STANDARD 11) | |
| endif () | |
| #source https://stackoverflow.com/a/31010221 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment