Skip to content

Commit

Permalink
Use target_compile_options
Browse files Browse the repository at this point in the history
  • Loading branch information
pitrou committed Dec 6, 2024
1 parent 7a30fe5 commit 69265ac
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions cpp/cmake_modules/ThirdpartyToolchain.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -2118,9 +2118,8 @@ macro(build_substrait)
set(SUBSTRAIT_INCLUDES ${SUBSTRAIT_CPP_DIR} ${PROTOBUF_INCLUDE_DIR})

add_library(substrait STATIC ${SUBSTRAIT_SOURCES})
set_target_properties(substrait
PROPERTIES POSITION_INDEPENDENT_CODE ON
COMPILE_OPTIONS "${SUBSTRAIT_SUPPRESSED_FLAGS}")
set_target_properties(substrait PROPERTIES POSITION_INDEPENDENT_CODE ON)
target_compile_options(substrait PRIVATE "${SUBSTRAIT_SUPPRESSED_FLAGS}")
target_include_directories(substrait PUBLIC ${SUBSTRAIT_INCLUDES})
target_link_libraries(substrait PUBLIC ${ARROW_PROTOBUF_LIBPROTOBUF})
add_dependencies(substrait substrait_gen)
Expand Down

0 comments on commit 69265ac

Please sign in to comment.