From 013e583fb228e02ed78cf36530e882fb8514d699 Mon Sep 17 00:00:00 2001 From: David Sisson Date: Wed, 18 Oct 2023 21:25:07 -0700 Subject: [PATCH] ran cmake format --- CMakeLists.txt | 10 ++++------ src/substrait/proto/CMakeLists.txt | 11 ++++------- src/substrait/textplan/parser/grammar/CMakeLists.txt | 3 ++- 3 files changed, 10 insertions(+), 14 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index e69ee47e..552c0897 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -11,13 +11,11 @@ set(CMAKE_CXX_STANDARD 17) set(CMAKE_CXX_STANDARD_REQUIRED True) set(CMAKE_EXPORT_COMPILE_COMMANDS ON) -option( - SUBSTRAIT_CPP_SANITIZE_DEBUG_BUILD - "Turns on address and undefined memory sanitization runtime checking." - ON -) +option(SUBSTRAIT_CPP_SANITIZE_DEBUG_BUILD + "Turns on address and undefined memory sanitization runtime checking." + ON) -if (${SUBSTRAIT_CPP_SANITIZE_DEBUG_BUILD}) +if(${SUBSTRAIT_CPP_SANITIZE_DEBUG_BUILD}) add_compile_options($<$:-fsanitize=undefined>) add_link_options($<$:-fsanitize=undefined>) diff --git a/src/substrait/proto/CMakeLists.txt b/src/substrait/proto/CMakeLists.txt index 69be6d9a..26198013 100644 --- a/src/substrait/proto/CMakeLists.txt +++ b/src/substrait/proto/CMakeLists.txt @@ -8,7 +8,8 @@ set(UPDATE_PROTO_PACKAGE_TOOL "${CMAKE_CURRENT_SOURCE_DIR}/update_proto_package.pl") set(RAW_PROTO_INCLUDE_DIR - "${CMAKE_CURRENT_SOURCE_DIR}/../../../third_party/substrait/proto/substrait") + "${CMAKE_CURRENT_SOURCE_DIR}/../../../third_party/substrait/proto/substrait" +) cmake_path(SET PROTO_INCLUDE_DIR NORMALIZE "${RAW_PROTO_INCLUDE_DIR}") cmake_path(GET PROTO_INCLUDE_DIR PARENT_PATH PROTO_INCLUDE_TOPLEVEL_DIR) set(PROTOBUF_IMPORT_DIRS ${PROTO_INCLUDE_DIR}/extensions) @@ -24,9 +25,7 @@ set(GENERATED_PROTO_MIDLEVEL_DIR "${GENERATED_PROTO_TOPLEVEL_DIR}/substrait/proto") set(GENERATED_PROTOBUF_LIST) foreach(PROTO_FILE IN LISTS PROTOBUF_FILELIST) - file(RELATIVE_PATH RELATIVE_PROTO_PATH - "${PROTO_INCLUDE_DIR}" - "${PROTO_FILE}") + file(RELATIVE_PATH RELATIVE_PROTO_PATH "${PROTO_INCLUDE_DIR}" "${PROTO_FILE}") set(GENERATED_PROTO_FILE ${GENERATED_PROTO_MIDLEVEL_DIR}/${RELATIVE_PROTO_PATH}) @@ -54,9 +53,7 @@ cmake_path(GET PROTO_OUTPUT_PARENT_DIR PARENT_PATH PROTO_OUTPUT_MIDLEVEL_DIR) cmake_path(GET PROTO_OUTPUT_MIDLEVEL_DIR PARENT_PATH PROTO_OUTPUT_TOPLEVEL_DIR) foreach(PROTO_FILE IN LISTS PROTOBUF_FILELIST) - file(RELATIVE_PATH RELATIVE_PROTO_PATH - "${PROTO_INCLUDE_DIR}" - "${PROTO_FILE}") + file(RELATIVE_PATH RELATIVE_PROTO_PATH "${PROTO_INCLUDE_DIR}" "${PROTO_FILE}") set(GENERATED_PROTO_FILE ${GENERATED_PROTO_MIDLEVEL_DIR}/${RELATIVE_PROTO_PATH}) message( diff --git a/src/substrait/textplan/parser/grammar/CMakeLists.txt b/src/substrait/textplan/parser/grammar/CMakeLists.txt index e572d917..47d88944 100644 --- a/src/substrait/textplan/parser/grammar/CMakeLists.txt +++ b/src/substrait/textplan/parser/grammar/CMakeLists.txt @@ -1,6 +1,7 @@ # SPDX-License-Identifier: Apache-2.0 -list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/../../../../../third_party/antlr4/cmake") +list(APPEND CMAKE_MODULE_PATH + "${CMAKE_CURRENT_SOURCE_DIR}/../../../../../third_party/antlr4/cmake") set(CMAKE_CXX_STANDARD 17)