We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5b702ae commit 68fbc3dCopy full SHA for 68fbc3d
loader/src/cmd/CMakeLists.txt
@@ -4,8 +4,14 @@ target_link_libraries(gz PUBLIC
4
${PROJECT_LIBRARY_TARGET_NAME}
5
)
6
7
-set(plugin_executable gz-plugin)
+# Define the desired output name of the executable
8
+set(plugin_executable_output_name gz-plugin)
9
+# Append "-exe" to cmake target name to differ from the library target name
10
+set(plugin_executable gz-plugin-exe)
11
add_executable(${plugin_executable} plugin_main.cc)
12
+set_target_properties(${plugin_executable}
13
+ PROPERTIES OUTPUT_NAME ${plugin_executable_output_name})
14
+
15
target_link_libraries(${plugin_executable}
16
gz
17
gz-utils::cli
0 commit comments