diff --git a/Documentation/Examples/Algorithms/CMakeLists.txt b/Documentation/Examples/Algorithms/CMakeLists.txt
index c200642f526cb84e06601b1c0a57c823cc885102..339ab575472154d34c32b763bc52cce04cdbfb04 100644
--- a/Documentation/Examples/Algorithms/CMakeLists.txt
+++ b/Documentation/Examples/Algorithms/CMakeLists.txt
@@ -21,7 +21,7 @@ if( BUILD_CUDA )
       set( CUDA_OUTPUTS ${CUDA_OUTPUTS} ${target}.out )
    endforeach()
 else()
-   foreach( target IN ITEMS "${COMMON_EXAMPLES} ${HOST_EXAMPLES}")
+   foreach( target IN ITEMS ${COMMON_EXAMPLES} ${HOST_EXAMPLES})
       add_executable( ${target} ${target}.cpp )
       add_custom_command( COMMAND ${target} > ${TNL_DOCUMENTATION_OUTPUT_SNIPPETS_PATH}/${target}.out OUTPUT ${target}.out )
       set( HOST_OUTPUTS ${HOST_OUTPUTS} ${target}.out )