CMake: fix FLTK_RUN_FLUID macro

The target variable should be set outside of the loop.
This commit is contained in:
Albrecht Schlosser 2020-07-20 10:19:47 +02:00
parent 956a3bb160
commit 1657654377

View File

@ -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)
#######################################################################