Ticket #63726: sw_vers_debug.diff

File sw_vers_debug.diff, 1.3 KB (added by chrstphrchvz (Christopher Chavez), 3 years ago)

Patch to debug output from sw_vers command

  • cmake/package_name.cmake

    From e2e9e6061a8d74d36c35da82b7e9d5d2490ead8b Mon Sep 17 00:00:00 2001
    From: Christopher Chavez <chrischavez@gmx.us>
    Date: Thu, 4 Nov 2021 03:52:04 -0500
    Subject: [PATCH] print debugging output from sw_vers
    
    ---
     cmake/package_name.cmake | 5 +++++
     1 file changed, 5 insertions(+)
    
    diff --git a/cmake/package_name.cmake b/cmake/package_name.cmake
    index 058b0bcbd8cb..af52e38095a1 100644
    a b MACRO(GET_PACKAGE_FILE_NAME Var) 
    8383        OUTPUT_STRIP_TRAILING_WHITESPACE
    8484        )
    8585      STRING(REPLACE "\n" ";" SW_VERS_OUTPUT_LIST "${SW_VERS_OUTPUT}")
     86      MESSAGE(STATUS "SW_VERS_OUTPUT_LIST: '${SW_VERS_OUTPUT_LIST}'")
    8687      LIST(GET SW_VERS_OUTPUT_LIST 0 SW_VERS_PRODUCTNAME)
    8788      LIST(GET SW_VERS_OUTPUT_LIST 1 SW_VERS_PRODUCTVERSION)
     89      MESSAGE(STATUS "SW_VERS_PRODUCTNAME: '${SW_VERS_PRODUCTNAME}'")
     90      MESSAGE(STATUS "SW_VERS_PRODUCTVERSION: '${SW_VERS_PRODUCTVERSION}'")
    8891
    8992      STRING(REGEX MATCH
    9093        "ProductVersion:[\n\t ]*([0-9]+)\\.([0-9]+)" UNUSED ${SW_VERS_PRODUCTVERSION})
     94      MESSAGE(STATUS "CMAKE_MATCH_1: '${CMAKE_MATCH_1}'")
     95      MESSAGE(STATUS "CMAKE_MATCH_2: '${CMAKE_MATCH_2}'")
    9196      IF(NOT CMAKE_MATCH_1 OR NOT CMAKE_MATCH_2)
    9297        MESSAGE(FATAL_ERROR "Could not run sw_vers")
    9398      ENDIF()