Skip to content

Commit

Permalink
cmake bugfix empty string during BUILD_TREE_DEPLOY
Browse files Browse the repository at this point in the history
  • Loading branch information
silverqx committed Apr 11, 2024
1 parent f400004 commit 5e4dc31
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion cmake/Modules/TinyDeployment.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -358,9 +358,14 @@ function(tiny_build_tree_deployment)

list(LENGTH filesToDeploy filesToDeployCount)

if(filesToDeployCount GREATER 0)
if((TINY_BUILD_LOADABLE_DRIVERS OR TINY_BUILD_SHARED_DRIVERS) AND
filesToDeployCount GREATER 0
)
# Without the COMMAND_EXPAND_LISTS it fails for Release builds because expression
# for the TARGET_PDB_FILE file returns "" an empty string
add_custom_target(TinyBuildTreeDeployTarget
ALL ${CMAKE_COMMAND} -E copy -t ${CMAKE_BINARY_DIR} ${filesToDeploy}
COMMAND_EXPAND_LISTS
VERBATIM
COMMENT
"Copying ${TinyDrivers_target} libraries to the root of the build tree..."
Expand Down

0 comments on commit 5e4dc31

Please sign in to comment.