Skip to content

Commit ec496ec

Browse files
committed
Review of PR #298
1 parent 863f5cd commit ec496ec

File tree

4 files changed

+8
-12
lines changed

4 files changed

+8
-12
lines changed

source/cli/plugins/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ endif()
66
# Extension sub-projects
77
add_subdirectory(core_plugin)
88

9-
#Install plugin directory
9+
# Install plugin directory
1010
install(DIRECTORY ${PROJECT_OUTPUT_DIR}/plugins
11-
DESTINATION ${INSTALL_LIB}
11+
DESTINATION ${INSTALL_LIB}/plugins
1212
PATTERN "test[-_]*" EXCLUDE
1313
)

source/cli/plugins/core_plugin/CMakeLists.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -196,17 +196,17 @@ add_dependencies(${target}
196196
# Deployment
197197
#
198198

199-
#Copy metacall-*.json
199+
# Copy metacall-*.json
200200
add_custom_target(${target}-create-plugin-dir ALL
201201
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
202202
COMMAND ${CMAKE_COMMAND} -E make_directory ${PROJECT_OUTPUT_DIR}/plugins/core_plugin
203-
COMMAND ${CMAKE_COMMAND} -E copy ${source_path}/metacall-core_plugin.json ${PROJECT_OUTPUT_DIR}/plugins/core_plugin
203+
COMMAND ${CMAKE_COMMAND} -E copy ${source_path}/metacall.json ${PROJECT_OUTPUT_DIR}/plugins/core_plugin
204204
)
205205

206206
# Library
207207
install(TARGETS ${target}
208208
EXPORT "${target}-export" COMPONENT dev
209-
RUNTIME DESTINATION ${INSTALL_BIN} COMPONENT runtime
209+
RUNTIME DESTINATION ${INSTALL_BIN} COMPONENT runtime
210210
LIBRARY DESTINATION ${INSTALL_SHARED} COMPONENT runtime
211-
ARCHIVE DESTINATION ${INSTALL_LIB} COMPONENT dev
211+
ARCHIVE DESTINATION ${INSTALL_LIB} COMPONENT dev
212212
)

source/tests/metacall_core_plugin_test/CMakeLists.txt

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,8 @@ target_link_libraries(${target}
9595
target_compile_definitions(${target}
9696
PRIVATE
9797
${DEFAULT_COMPILE_DEFINITIONS}
98+
99+
CORE_PLUGIN_PATH="${PROJECT_OUTPUT_DIR}/plugins/core_plugin/metacall.json"
98100
)
99101

100102
#
@@ -106,12 +108,6 @@ target_compile_options(${target}
106108
${DEFAULT_COMPILE_OPTIONS}
107109
)
108110

109-
#
110-
#Define Macros
111-
#
112-
113-
add_compile_definitions(CORE_PLUGIN_PATH="${PROJECT_OUTPUT_DIR}/plugins/core_plugin/metacall-core_plugin.json")
114-
115111
#
116112
# Linker options
117113
#

0 commit comments

Comments
 (0)