]> git.lyx.org Git - lyx.git/blobdiff - development/cmake/modules/LyXMacros.cmake
cmake: -Dhelp=1 lists all options
[lyx.git] / development / cmake / modules / LyXMacros.cmake
index 74750212ea8fb033de009aa30c6bd77a8e025556..57c7e7a69d1e64101254b724ea28c1236916d906 100644 (file)
@@ -261,7 +261,7 @@ endmacro()
 
 macro(LYX_OPTION_LIST_ALL)
        foreach(_option ${LYX_OPTIONS})
-               if(${_option}_show_message)
+               if(${_option}_show_message OR ${ARGV0} STREQUAL "help")
                        string(SUBSTRING "${_option}                            " 0 25 _var)
                        if(${_option})
                                set(_isset ON)
@@ -279,6 +279,7 @@ macro(lyx_add_info_files group)
                if(NOT IS_DIRECTORY ${_it})
                        get_filename_component(name ${_it} NAME)
                        if(NOT ${_it} MATCHES "^/\\\\..*$;~$")
+                               set_source_files_properties(${_it} PROPERTIES HEADER_FILE_ONLY TRUE)
                                set(lyx_${group}_info_files ${lyx_${group}_info_files} ${_it})
                        endif()
                endif()