From 66a8475973f8d9753a3b0ec479f82f19f026ea4e Mon Sep 17 00:00:00 2001 From: Zhennan Tu Date: Thu, 3 Oct 2024 14:32:18 +0800 Subject: [PATCH] Fix non-windows compile error --- cmake/targets/targets.cmake | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cmake/targets/targets.cmake b/cmake/targets/targets.cmake index 15c3a0c..681f43d 100644 --- a/cmake/targets/targets.cmake +++ b/cmake/targets/targets.cmake @@ -337,10 +337,12 @@ if (LT_WINDOWS) ${CMAKE_CURRENT_SOURCE_DIR}/lanthing.rc.in ${CMAKE_CURRENT_SOURCE_DIR}/lanthing.rc @ONLY) + + set(LT_LANTHING_RC ${CMAKE_CURRENT_SOURCE_DIR}/lanthing.rc) endif() add_executable(${PROJECT_NAME} - ${CMAKE_CURRENT_SOURCE_DIR}/lanthing.rc + ${LT_LANTHING_RC} ${LT_SRCS} )