Skip to content

Commit 5e4dc31

Browse files
committed
cmake bugfix empty string during BUILD_TREE_DEPLOY
1 parent f400004 commit 5e4dc31

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

cmake/Modules/TinyDeployment.cmake

+6-1
Original file line numberDiff line numberDiff line change
@@ -358,9 +358,14 @@ function(tiny_build_tree_deployment)
358358

359359
list(LENGTH filesToDeploy filesToDeployCount)
360360

361-
if(filesToDeployCount GREATER 0)
361+
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
362366
add_custom_target(TinyBuildTreeDeployTarget
363367
ALL ${CMAKE_COMMAND} -E copy -t ${CMAKE_BINARY_DIR} ${filesToDeploy}
368+
COMMAND_EXPAND_LISTS
364369
VERBATIM
365370
COMMENT
366371
"Copying ${TinyDrivers_target} libraries to the root of the build tree..."

0 commit comments

Comments
 (0)