• Brad King's avatar
    CheckTypeSize: Do not use cmake_policy(VERSION) · a4596f20
    Brad King authored
    Do not force a specific policy version in the module because it prevents
    projects from setting newer policies to NEW.  In particular, projects
    may want to set CMP0056 to NEW to affect any try_compile calls in this
    module.
    
    Use of this was added in commit v2.8.2~539 (New CheckTypeSize for OS X
    Universal Binaries, 2009-12-17) and updated in commit v3.1.0-rc1~511^2~1
    (Do not change minimum required version in modules, 2014-05-07).  The
    history does not clearly explain why a specific policy version was
    introduced.  If specific policies need to be NEW then we can add
    explicit settings for them.
    a4596f20
CheckTypeSize.cmake 9.54 KB