Skip to content

Commit f1ccc7e

Browse files
committed
misc
1 parent 358a692 commit f1ccc7e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

CMakeLists.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,8 +178,7 @@ if (WIN32)
178178
# Post-build step to copy DLL files to executable directory
179179
add_custom_command(TARGET synth POST_BUILD
180180
COMMAND ${CMAKE_COMMAND} -E echo "Finding and copying DLL files to executable directory..."
181-
COMMAND ${CMAKE_COMMAND} -E make_directory $<TARGET_FILE_DIR:synth>
182-
COMMAND powershell -Command "Get-ChildItem -Path '$<TARGET_FILE_DIR:synth>' -Filter '*.dll' -Recurse | ForEach-Object { Copy-Item -Path $_.FullName -Destination '$<TARGET_FILE_DIR:synth>' -Force -Verbose }"
181+
COMMAND powershell -Command "Get-ChildItem -Path '${CMAKE_BINARY_DIR}' -Filter '*.dll' -Recurse | ForEach-Object { Copy-Item -Path $_.FullName -Destination '$<TARGET_FILE_DIR:synth>' -Force }"
183182
COMMENT "Copying all DLL files to executable directory"
184183
)
185184
else()

0 commit comments

Comments
 (0)