Skip to content

Commit 8a6a118

Browse files
committed
rename add_interface_library -> _add_interface_library_before
1 parent 8f13833 commit 8a6a118

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/coreclr/clrdatadescriptors.cmake

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ function(generate_data_descriptors)
4949
endif()
5050

5151
# inherit definitions, include directories, and dependencies from the INTERFACE target
52-
add_interface_library(${INTERMEDIARY_LIBRARY} ${DATA_DESCRIPTORS_INTERFACE_TARGET})
52+
_add_interface_library_before(${INTERMEDIARY_LIBRARY} ${DATA_DESCRIPTORS_INTERFACE_TARGET})
5353

5454
set(CONTRACT_BASELINE_DIR "${CLR_REPO_ROOT_DIR}/docs/design/datacontracts/data")
5555
set(CONTRACT_DESCRIPTOR_INPUT "${DATA_DESCRIPTOR_SHARED_SOURCE_DIR}/contract-descriptor.c.in")
@@ -81,17 +81,17 @@ function(generate_data_descriptors)
8181
)
8282

8383
# inherit definitions, include directories, and dependencies from the INTERFACE target
84-
add_interface_library(${LIBRARY} ${DATA_DESCRIPTORS_INTERFACE_TARGET})
84+
_add_interface_library_before(${LIBRARY} ${DATA_DESCRIPTORS_INTERFACE_TARGET})
8585
endif()
8686
endfunction(generate_data_descriptors)
8787

8888
# Links in an interface to a target with the interface include directories included
8989
# before the targets include directories.
90-
function(add_interface_library target_name interface_name)
90+
function(_add_interface_library_before target_name interface_name)
9191
get_target_property(target_includes ${target_name} INCLUDE_DIRECTORIES)
9292
target_link_libraries(${target_name} PRIVATE ${interface_name})
9393
set_target_properties(${target_name} PROPERTIES INCLUDE_DIRECTORIES "${target_includes}")
9494

9595
get_target_property(interface_includes ${interface_name} INTERFACE_INCLUDE_DIRECTORIES)
9696
target_include_directories(${target_name} BEFORE PRIVATE ${interface_includes})
97-
endfunction(add_interface_library)
97+
endfunction(_add_interface_library_before)

0 commit comments

Comments
 (0)