Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Not a Bug
-
1.0.6
-
None
-
OS:centos7 3.10.0-327.36.3.el7.x86_64
gcc:4.8.5
-
2017-01
Description
CMake Error at storage/tokudb/PerconaFT/cmake_modules/TokuSetupCompiler.cmake:177 (message):
/usr/bin/c++ doesn't support -std=c+11 or -std=c+0x, you need one that
does.
Call Stack (most recent call first):
storage/tokudb/PerconaFT/CMakeLists.txt:38 (include)
storage/tokudb/PerconaFT/cmake_modules/TokuSetupCompiler.cmake's Line 177 is check_cxx_compiler_flag error.
As if it was modified above. So cmake process is continued.
I think it has something wrong in check_cxx_compiler_flag.
- pick language dialect
set(CMAKE_C_FLAGS "-std=c99 ${CMAKE_C_FLAGS}")
check_cxx_compiler_flag(-std=c++11 HAVE_STDCXX11)
check_cxx_compiler_flag(-std=c++0x HAVE_STDCXX0X)
if (HAVE_STDCXX11)
set(CMAKE_CXX_FLAGS "-std=c++11 ${CMAKE_CXX_FLAGS}")
elseif (HAVE_STDCXX0X)
set(CMAKE_CXX_FLAGS "-std=c++0x ${CMAKE_CXX_FLAGS}")
else ()
set(CMAKE_CXX_FLAGS "-std=c++11 ${CMAKE_CXX_FLAGS}")
##message(FATAL_ERROR "${CMAKE_CXX_COMPILER} doesn't support -std=c+11 or -std=c+0x, you need one that does.")
endif ()
Attachments
Issue Links
- relates to
-
MDEV-18273 CMake Error at storage/tokudb/PerconaFT/cmake_modules/TokuSetupCompiler.cmake:178
- Closed