Wireshark-commits: [Wireshark-commits] master 378ecc2: CMake: FindGLIB2 depends on FindWSLibrary mo
From: Wireshark code review <code-review-do-not-reply@xxxxxxxxxxxxx>
Date: Fri, 20 Mar 2020 05:14:18 +0000
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=378ecc27df67a5b9cc371c5e07a4376950fe5a2a
Submitter: "Guy Harris <guy@xxxxxxxxxxxx>"
Changed: branch: master
Repository: wireshark

Commits:

378ecc2 by Paul Aurich (paul@xxxxxxxxxxxxxx):

    CMake: FindGLIB2 depends on FindWSLibrary module
    
    Beginning in Wireshark 3.2, the FindGLIB2 cmake module depends on FindWSLibrary
    (see 990e409273b), so FindWSLibrary needs to be installed as well, or
    attempting to build an out-of-tree plugin fails.
    
    Simple example CMakeLists.txt:
    
    cmake_minimum_required(VERSION 2.8)
    project(myplugin)
    find_package(Wireshark)
    LIST(APPEND CMAKE_MODULE_PATH "${Wireshark_LIB_DIR}/wireshark/cmake")
    find_package(GLIB2)
    
    Fails:
    
    -- Checking for one of the modules 'glib-2.0'
    CMake Error at /usr/local/lib/wireshark/cmake/FindGLIB2.cmake:49 (include):
      include could not find load file:
    
        FindWSLibrary
    Call Stack (most recent call first):
      CMakeLists.txt:5 (find_package)
    
    CMake Error at /usr/local/lib/wireshark/cmake/FindGLIB2.cmake:50 (FindWSLibrary):
      Unknown CMake command "FindWSLibrary".
    Call Stack (most recent call first):
      CMakeLists.txt:5 (find_package)
    
    -- Configuring incomplete, errors occurred!
    
    Change-Id: Id765d671e74fe15a60add38b95e62536abf60a79
    Reviewed-on: https://code.wireshark.org/review/36509
    Reviewed-by: João Valverde <j@xxxxxx>
    Petri-Dish: João Valverde <j@xxxxxx>
    Tested-by: Petri Dish Buildbot
    Reviewed-by: Guy Harris <guy@xxxxxxxxxxxx>
    

Actions performed:

    from  42010a6   Windows: upgrade Npcap to 0.9989
     add  378ecc2   CMake: FindGLIB2 depends on FindWSLibrary module


Summary of changes:
 CMakeLists.txt | 1 +
 1 file changed, 1 insertion(+)