We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f400004 commit 5e4dc31Copy full SHA for 5e4dc31
cmake/Modules/TinyDeployment.cmake
@@ -358,9 +358,14 @@ function(tiny_build_tree_deployment)
358
359
list(LENGTH filesToDeploy filesToDeployCount)
360
361
- if(filesToDeployCount GREATER 0)
+ if((TINY_BUILD_LOADABLE_DRIVERS OR TINY_BUILD_SHARED_DRIVERS) AND
362
+ filesToDeployCount GREATER 0
363
+ )
364
+ # Without the COMMAND_EXPAND_LISTS it fails for Release builds because expression
365
+ # for the TARGET_PDB_FILE file returns "" an empty string
366
add_custom_target(TinyBuildTreeDeployTarget
367
ALL ${CMAKE_COMMAND} -E copy -t ${CMAKE_BINARY_DIR} ${filesToDeploy}
368
+ COMMAND_EXPAND_LISTS
369
VERBATIM
370
COMMENT
371
"Copying ${TinyDrivers_target} libraries to the root of the build tree..."
0 commit comments