Skip to content
  • Brad King's avatar
    ENH: Add "if(POLICY policy-id)" option for IF command. · a6a67397
    Brad King authored
      - This will help projects support multiple CMake versions.
      - In order to set a policy when using a newer CMake but still
        working with an older CMake one may write
          if(POLICY CMP1234)
            cmake_policy(SET CMP1234 NEW)
          endif(POLICY CMP1234)
      - Note that since CMake 2.4 does not have if(POLICY) supporting
        it will also require using "if(COMMAND cmake_policy)"
    a6a67397