Created
June 13, 2016 09:30
-
-
Save ruslo/69938b4112547817f7758ce68d0772a0 to your computer and use it in GitHub Desktop.
Set c++11
This file contains 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
string(COMPARE NOTEQUAL "${CMAKE_TOOLCHAIN_FILE}" "" has_toolchain) | |
if(has_toolchain) | |
set(CMAKE_CXX_STANDARD_REQUIRED YES) | |
set(CMAKE_CXX_STANDARD 11) | |
endif() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment