File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1294,7 +1294,7 @@ function(ROOT_EXECUTABLE executable)
1294
1294
set (exe_srcs ${exe_srcs} ${ROOT_RC_SCRIPT} )
1295
1295
endif ()
1296
1296
add_executable (${executable} ${_all} ${exe_srcs} )
1297
- target_link_libraries (${executable} ${ARG_LIBRARIES} )
1297
+ target_link_libraries (${executable} PRIVATE ${ARG_LIBRARIES} )
1298
1298
1299
1299
if (WIN32 AND ${executable} MATCHES \\.exe)
1300
1300
set_target_properties (${executable} PROPERTIES SUFFIX "" )
@@ -1659,7 +1659,7 @@ function(ROOT_ADD_GTEST test_suite)
1659
1659
# against. For example, tests in Core should link only against libCore. This could be tricky
1660
1660
# to implement because some ROOT components create more than one library.
1661
1661
ROOT_EXECUTABLE(${test_suite} ${source_files} LIBRARIES ${ARG_LIBRARIES} )
1662
- target_link_libraries (${test_suite} gtest gtest_main gmock gmock_main ROOTUnitTestSupport)
1662
+ target_link_libraries (${test_suite} PRIVATE gtest gtest_main gmock gmock_main ROOTUnitTestSupport)
1663
1663
target_include_directories (${test_suite} PRIVATE ${CMAKE_CURRENT_BINARY_DIR} )
1664
1664
if (ARG_INCLUDE_DIRS)
1665
1665
target_include_directories (${test_suite} PRIVATE ${ARG_INCLUDE_DIRS} )
You can’t perform that action at this time.
0 commit comments