Skip to content

Commit a211f6e

Browse files
Revert "[cmake] Fix target_link_libraries to fix the link dependencies and interface."
This reverts commit b62848e.
1 parent f90ea7a commit a211f6e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/CMakeLists.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -115,13 +115,13 @@ FOREACH(path ${tests})
115115
GET_FILENAME_COMPONENT(test ${path} NAME)
116116
ADD_UNIT_TEST(${test} ${path}.cpp)
117117

118-
TARGET_LINK_LIBRARIES(${test}
119-
PUBLIC
120-
${PROJECT_NAME}
121-
${Boost_LIBRARIES}
118+
TARGET_LINK_LIBRARIES(${test} ${PROJECT_NAME} ${Boost_LIBRARIES}
122119
${TEST_${test}_LIBS} ${TEST_${test}_EXT_LIBS}
123120
dynamic-graph::dynamic-graph)
124121

122+
TARGET_INCLUDE_DIRECTORIES(${test}
123+
SYSTEM PUBLIC ${Boost_INCLUDE_DIRS})
124+
125125
IF(UNIX)
126126
TARGET_LINK_LIBRARIES(${test} ${CMAKE_DL_LIBS})
127127
ENDIF(UNIX)

0 commit comments

Comments
 (0)