Skip to content

Commit

Permalink
Add compilation option
Browse files Browse the repository at this point in the history
  • Loading branch information
xadupre committed Sep 27, 2024
1 parent ff2c70e commit 7ddf15f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions _cmake/externals/FindOrt.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,8 @@ function(ort_add_custom_op name provider folder)
PYTHON_MANYLINUX=${PYTHON_MANYLINUX})
endif()
set_property(TARGET ${name} PROPERTY POSITION_INDEPENDENT_CODE ON)
set_target_properties(${name} PROPERTIES CXX_VISIBILITY_PRESET hidden)
set_target_properties(${name} PROPERTIES VISIBILITY_INLINES_HIDDEN 1)
get_target_property(target_file ${name} LIBRARY_OUTPUT_NAME)
message(STATUS "ort: copy after build '$<TARGET_FILE:${name}>' to '${ROOT_PROJECT_PATH}/${folder}'")
add_custom_command(
Expand Down

0 comments on commit 7ddf15f

Please sign in to comment.