Wireshark-commits: [Wireshark-commits] master-3.0 ce2ce09: CMake: Fix FindGLIB2 for saner output

From: Wireshark code review <code-review-do-not-reply@xxxxxxxxxxxxx>
Date: Sat, 02 May 2020 07:40:08 +0000
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=ce2ce0953c6ab9d73a74e8f8155422613d4ed8a2
Submitter: "João Valverde <j@xxxxxx>"
Changed: branch: master-3.0
Repository: wireshark

Commits:

ce2ce09 by João Valverde (joao.valverde@xxxxxxxxxxxxxxxxxx):

    CMake: Fix FindGLIB2 for saner output
    
    Apparently FindPackageHandleStandardArgs uses if(DEFINED ...) to test
    VERSION_VAR, for somewhat obscure reasons. If we didn't find a suitable
    GLib package we must not define GLIB2_VERSION, otherwise the status
    output is confused and just generally wrong.
    
    Change-Id: Iad4012e69a7c641c50d1e399bbfdb51583cb3b40
    Reviewed-on: https://code.wireshark.org/review/36990
    Reviewed-by: João Valverde <j@xxxxxx>
    Petri-Dish: João Valverde <j@xxxxxx>
    Tested-by: Petri Dish Buildbot
    Reviewed-by: Peter Wu <peter@xxxxxxxxxxxxx>
    (cherry picked from commit 3a32757313e85368e88fdd9dbb82f839514569f5)
    Reviewed-on: https://code.wireshark.org/review/37018
    

Actions performed:

    from  c367fbd   mpeg: make sure the presence flags are set.
     add  ce2ce09   CMake: Fix FindGLIB2 for saner output


Summary of changes:
 cmake/modules/FindGLIB2.cmake | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)