diff --git a/development/cmake/modules/LyXMacros.cmake b/development/cmake/modules/LyXMacros.cmake index eec6ff7ee4..2d0a1ff949 100644 --- a/development/cmake/modules/LyXMacros.cmake +++ b/development/cmake/modules/LyXMacros.cmake @@ -268,7 +268,8 @@ macro(lyx_add_info_files group) endif() endif() endforeach() - if(group) + set(check_group ${group}) #cmake bug? + if(check_group) source_group(${group} FILES ${lyx_${group}_info_files}) endif() set(lyx_info_files ${lyx_info_files} ${lyx_${group}_info_files})