Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
lasote committed Jul 27, 2022
1 parent 9193376 commit 5f3026a
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,14 +104,15 @@ def package_info(self):
client.run("install hello/1.0@ -g CMakeDeps -s arch=x86_64 -s build_type=Release")
with open(os.path.join(client.current_folder, "hello-Target-release.cmake")) as f:
content = f.read()
assert """set_property(TARGET hello::say PROPERTY INTERFACE_LINK_LIBRARIES
$<$<CONFIG:Release>:${hello_hello_say_OBJECTS_RELEASE}
${hello_hello_say_LINK_LIBS_RELEASE}> APPEND)""" in content
assert """set_property(TARGET hello::say
PROPERTY INTERFACE_LINK_LIBRARIES
$<$<CONFIG:Release>:${hello_hello_say_OBJECTS_RELEASE}>
${hello_hello_say_LIBRARIES_TARGETS}""" in content
# If there are componets, there is not a global cpp so this is not generated
assert """set_property(TARGET hello::hello
PROPERTY INTERFACE_LINK_LIBRARIES
$<$<CONFIG:Release>:${hello_OBJECTS_RELEASE}>
${hello_LIBRARIES_TARGETS} APPEND)""" not in content
${hello_LIBRARIES_TARGETS}""" not in content
# But the global target is linked with the targets from the components
assert "target_link_libraries(hello::hello INTERFACE hello::say)" in content

Expand Down

0 comments on commit 5f3026a

Please sign in to comment.