projects
/
platform
/
upstream
/
bcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
86bcc27
)
Better check for compiler standard support
author
Teng Qin
<qinteng@fb.com>
Fri, 25 Aug 2017 22:56:23 +0000
(15:56 -0700)
committer
Brenden Blanco
<bblanco@gmail.com>
Fri, 25 Aug 2017 23:42:03 +0000
(16:42 -0700)
CMakeLists.txt
patch
|
blob
|
history
diff --git
a/CMakeLists.txt
b/CMakeLists.txt
index
b0a75be
..
f637b52
100644
(file)
--- a/
CMakeLists.txt
+++ b/
CMakeLists.txt
@@
-70,12
+70,8
@@
if (USINGISYSTEM AND GCC_VERSION VERSION_LESS 6.0)
endforeach()
endif()
-CHECK_CXX_COMPILER_FLAG("-std=c++11" COMPILER_SUPPORTS_CXX11)
-if(COMPILER_SUPPORTS_CXX11)
- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
-else()
- message(FATAL_ERROR "Compiler ${CMAKE_CXX_COMPILER} has no C++11 support.")
-endif()
+set(CMAKE_CXX_STANDARD_REQUIRED ON)
+set(CMAKE_CXX_STANDARD 11)
endif(NOT PYTHON_ONLY AND ENABLE_CLANG_JIT)