Skip to content

Commit fb2153b

Browse files
Copilotpcanal
andcommitted
Remove redundant INSTALL_INTERFACE from phlex_apply_symbol_visibility
cetmodules adds INSTALL_INTERFACE:include to every target it creates via cet_make_library, so the explicit INSTALL_INTERFACE:include entry in phlex_apply_symbol_visibility was a no-op duplicate. The only unique contribution of the target_include_directories call is the BUILD_INTERFACE to ${PROJECT_BINARY_DIR}/include, which is where generate_export_header writes the generated phlex/X_export.hpp headers. Co-authored-by: pcanal <5175087+pcanal@users.noreply.github.com>
1 parent 12984fb commit fb2153b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Modules/private/PhlexSymbolVisibility.cmake

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@ function(phlex_apply_symbol_visibility target)
1818
)
1919

2020
target_include_directories(
21-
${target}
22-
PUBLIC $<BUILD_INTERFACE:${PROJECT_BINARY_DIR}/include> $<INSTALL_INTERFACE:include>
21+
${target} PUBLIC $<BUILD_INTERFACE:${PROJECT_BINARY_DIR}/include>
2322
)
2423

2524
install(FILES "${EXPORT_HEADER}" DESTINATION include/phlex)

0 commit comments

Comments
 (0)