From 1657654377856df9a5c4857a520a54c2bdf3c753 Mon Sep 17 00:00:00 2001 From: Albrecht Schlosser Date: Mon, 20 Jul 2020 10:19:47 +0200 Subject: [PATCH] CMake: fix FLTK_RUN_FLUID macro The target variable should be set outside of the loop. --- CMake/FLTK-Functions.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMake/FLTK-Functions.cmake b/CMake/FLTK-Functions.cmake index cf7b0ae1a..14e96d7cc 100644 --- a/CMake/FLTK-Functions.cmake +++ b/CMake/FLTK-Functions.cmake @@ -34,8 +34,8 @@ function (FLTK_RUN_FLUID TARGET SOURCES) ) list (APPEND CXX_FILES "${basename}.cxx") endif ("${src}" MATCHES "\\.fl$") - set (${TARGET} ${CXX_FILES} PARENT_SCOPE) endforeach () + set (${TARGET} ${CXX_FILES} PARENT_SCOPE) endfunction (FLTK_RUN_FLUID TARGET SOURCES) #######################################################################