From 8eda3fa2d2f10c3041ab3f20ef46432fd8d55f53 Mon Sep 17 00:00:00 2001 From: k4yt3x Date: Mon, 4 Nov 2024 00:00:00 +0000 Subject: [PATCH] build(cmake): fixed the broken RealESRGAN installation rules Signed-off-by: k4yt3x --- CMakeLists.txt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 16d6c46..a46a0cc 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -346,9 +346,11 @@ target_compile_options(libvideo2x PRIVATE # Define the path to the built libresrgan-ncnn-vulkan library if(WIN32) - list(APPEND ALL_LIBRARIES ${CMAKE_BINARY_DIR}/realesrgan_install/lib/librealesrgan-ncnn-vulkan.lib) + set(REALESRGAN_LIB ${CMAKE_BINARY_DIR}/realesrgan_install/lib/librealesrgan-ncnn-vulkan.lib) + list(APPEND ALL_LIBRARIES ${REALESRGAN_LIB}) else() - list(APPEND ALL_LIBRARIES ${CMAKE_BINARY_DIR}/realesrgan_install/lib/librealesrgan-ncnn-vulkan.so) + set(REALESRGAN_LIB ${CMAKE_BINARY_DIR}/realesrgan_install/lib/librealesrgan-ncnn-vulkan.so) + list(APPEND ALL_LIBRARIES ${REALESRGAN_LIB}) endif() # Link the shared library with the dependencies