From 085239465072ba9183ec80091b399f5c0863f509 Mon Sep 17 00:00:00 2001 From: Aegeaner Date: Fri, 18 Aug 2017 00:38:16 +0800 Subject: [PATCH] support fedora --- be/CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/be/CMakeLists.txt b/be/CMakeLists.txt index 23372ac1720f66..392d83091265de 100644 --- a/be/CMakeLists.txt +++ b/be/CMakeLists.txt @@ -281,6 +281,10 @@ elseif(${LINUX_VERSION_LOWER} MATCHES "centos") set(CLANG_BASE_FLAGS "-I/usr/include/c++/4.8.5/" "-I/usr/include/c++/4.8.5/x86_64-redhat-linux/") +elseif(${LINUX_VERSION_LOWER} MATCHES "fedora") + set(CLANG_BASE_FLAGS + "-I/usr/include/c++/7/" + "-I/usr/include/c++/7/x86_64-redhat-linux/") else() message(FATAL_ERROR "Currently not support system ${LINUX_VERSION}") endif() @@ -391,7 +395,7 @@ if (${MAKE_TEST} STREQUAL "ON") SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -fprofile-arcs -ftest-coverage -lgcov") add_definitions(-DBE_TEST) endif () - + add_subdirectory(${SRC_DIR}/codegen) add_subdirectory(${SRC_DIR}/common) add_subdirectory(${SRC_DIR}/util)