Skip to content

Commit 963d672

Browse files
authored
implptr test: link to project library (#4)
This is a minor cmake change that uses target_link_libraries instead of set_target_properties. It's a minor suggestion I thought of after #1 was merged. Signed-off-by: Steve Peters <scpeters@openrobotics.org>
1 parent 53d4a5c commit 963d672

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

test/integration/implptr/CMakeLists.txt

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
add_library(implptr_test_classes SHARED implptr_test_classes.cc)
22

3-
set_target_properties(implptr_test_classes PROPERTIES
4-
CXX_STANDARD ${c++standard}
5-
CXX_STANDARD_REQUIRED ON
3+
target_link_libraries(implptr_test_classes
4+
${PROJECT_LIBRARY_TARGET_NAME}
65
)
76

87
# Piggyback on the auto-generated dll exports for Windows

0 commit comments

Comments
 (0)