Skip to content

Commit

Permalink
Move CLANG_TIDY_BUILD settings earlier.
Browse files Browse the repository at this point in the history
  • Loading branch information
EpsilonPrime committed Jul 26, 2024
1 parent 5d52aed commit 5d02857
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ option(
include_directories(include)
include_directories(src)

if(${CLANG_TIDY_BUILD})
add_compile_options("-Wno-attributes;-Wno-deprecated-declarations")
endif()

find_package(Protobuf QUIET CONFIG)
if(${Protobuf_FOUND})
message(STATUS "Modern protobuf library located.")
Expand All @@ -50,10 +54,6 @@ if(${SUBSTRAIT_CPP_BUILD_TESTING})
enable_testing()
endif()

if(${CLANG_TIDY_BUILD})
add_compile_options("-Wno-attributes;-Wno-deprecated-declarations")
endif()

install(EXPORT SubstraitTargets DESTINATION lib/cmake/Substrait)

add_subdirectory(src/substrait)
Expand Down

0 comments on commit 5d02857

Please sign in to comment.