File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed
Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff 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 )
185184else ()
You can’t perform that action at this time.
0 commit comments