Skip to content

Commit b5052fa

Browse files
committed
Fixed public/private interface consistency.
1 parent 08b868a commit b5052fa

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

pyhelios_build/CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ target_include_directories(pyhelios_interface PRIVATE
3838
)
3939

4040
# Link interface to helios library
41-
target_link_libraries(pyhelios_interface helios)
41+
target_link_libraries(pyhelios_interface PUBLIC helios)
4242

4343
# Set output directory to lib so it's found by build script
4444
set_target_properties(pyhelios_interface PROPERTIES
@@ -61,13 +61,13 @@ target_include_directories(pyhelios_shared PRIVATE
6161
)
6262

6363
# Link to helios library and all selected plugins
64-
target_link_libraries(pyhelios_shared helios)
64+
target_link_libraries(pyhelios_shared PUBLIC helios)
6565

6666
# Link to plugins based on plugin configuration
6767
if(DEFINED PLUGINS)
6868
foreach(PLUGIN IN LISTS PLUGINS)
6969
if(TARGET ${PLUGIN})
70-
target_link_libraries(pyhelios_shared ${PLUGIN})
70+
target_link_libraries(pyhelios_shared PUBLIC ${PLUGIN})
7171
message(STATUS "Linked pyhelios_shared to plugin: ${PLUGIN}")
7272
endif()
7373
endforeach()

0 commit comments

Comments
 (0)