Skip to content

Commit 793be2e

Browse files
Fix another cmake error
CMake Error at CMakeLists.txt:229 (add_custom_command): Exactly one of PRE_BUILD, PRE_LINK, or POST_BUILD must be given.
1 parent 19c1c81 commit 793be2e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,7 @@ if(BUILD_TESTING)
227227
set(_resource "$<TARGET_FILE:${test_plugin_target}>")
228228
set(_output "${test_prefix}/lib/$<TARGET_FILE_NAME:${test_plugin_target}>")
229229
add_custom_command(TARGET ${test_plugin_target}
230+
POST_BUILD
230231
COMMENT "Copying target ${test_plugin_target} for testing"
231232
COMMAND ${CMAKE_COMMAND} -E copy_if_different
232233
"${_resource}"

0 commit comments

Comments
 (0)