From 2b41d6948c13698017cd87a7b2c068bfb40d8fc4 Mon Sep 17 00:00:00 2001 From: bjorn Date: Wed, 6 Mar 2019 11:06:02 -0800 Subject: [PATCH] CMake: move_dll works with empty arguments; --- CMakeLists.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index fc4ec44c..0e7ea0a7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -522,12 +522,12 @@ if(WIN32) target_compile_definitions(lovr PUBLIC -Dinline=__inline -Dsnprintf=_snprintf) endif() - function(move_dll ARG_TARGET) - if(TARGET ${ARG_TARGET}) + function(move_dll) + if(TARGET ${ARGV0}) add_custom_command(TARGET lovr POST_BUILD COMMAND ${CMAKE_COMMAND} -E copy - $ - ${CMAKE_CURRENT_BINARY_DIR}/$/$ + $ + ${CMAKE_CURRENT_BINARY_DIR}/$/$ ) endif() endfunction()