Changeset 14425


Ignore:
Timestamp:
Jan 1, 2015, 10:20:57 PM (7 years ago)
Author:
mikedld
Message:

External CMake projects: supress developer warnings, allow skipping checksum checks with SKIP_UPSTREAM_CHECKSUM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/cmake/TrMacros.cmake

    r14390 r14425  
    4141macro(tr_github_upstream ID REPOID RELID RELMD5)
    4242    set(${ID}_RELEASE "${RELID}")
    43     set(${ID}_UPSTREAM URL "https://github.com/${REPOID}/archive/${RELID}.tar.gz" URL_MD5 "${RELMD5}")
     43    set(${ID}_UPSTREAM URL "https://github.com/${REPOID}/archive/${RELID}.tar.gz")
     44    if(NOT SKIP_UPSTREAM_CHECKSUM)
     45        list(APPEND ${ID}_UPSTREAM URL_MD5 "${RELMD5}")
     46    endif()
    4447endmacro()
    4548
     
    6366            PREFIX "${${ID}_PREFIX}"
    6467            CMAKE_ARGS
     68                -Wno-dev # We don't want to be warned over unused variables
    6569                "-DCMAKE_TOOLCHAIN_FILE:PATH=${CMAKE_TOOLCHAIN_FILE}"
    6670                "-DCMAKE_C_FLAGS:STRING=${CMAKE_C_FLAGS}"
Note: See TracChangeset for help on using the changeset viewer.