We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0e30b52 commit b1f379dCopy full SHA for b1f379d
test/integration/CMakeLists.txt
@@ -55,6 +55,9 @@ if (CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
55
# linking generator expressions as described here:
56
# https://cmake.org/cmake/help/latest/manual/cmake-generator-expressions.7.html#genex:LINK_LIBRARY
57
target_link_libraries(INTEGRATION_static_plugins -WHOLEARCHIVE:$<TARGET_FILE:GzDummyStaticPlugin>)
58
+ # The whole-archive invocation doesn't correctly compute dependencies,
59
+ # so explicitly require the plugin before the test can build.
60
+ add_dependencies(INTEGRATION_static_plugins GzDummyStaticPlugin)
61
else()
62
target_link_libraries(INTEGRATION_static_plugins
63
$<$<CXX_COMPILER_ID:GNU>:-Wl,--whole-archive>
0 commit comments