From 1547b335e4fc9ad0a8262b2984dbb6ec46577266 Mon Sep 17 00:00:00 2001 From: Tyler Kropp Date: Fri, 19 May 2023 19:16:10 -0400 Subject: [PATCH] cmake: Fix copying targets on Windows in multi-config build systems Signed-off-by: Cosmin Truta --- CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index e16369919..0b9b2f6de 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -25,6 +25,7 @@ # Revised by Martin Storsjo, 2022 # Revised by Jon Creighton, 2023 # Revised by Gunther Nikl, 2023 +# Revised by Tyler Kropp, 2023 # This code is released under the libpng license. # For conditions of distribution and use, see the disclaimer @@ -938,7 +939,7 @@ function(create_symlink DEST_FILE) POST_BUILD COMMAND "${CMAKE_COMMAND}" -E copy_if_different - $ + $/$ $/${DEST_FILE}) else() add_custom_command(TARGET ${_SYM_TARGET}