<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">On 18.06.2016 11:38, Alexander Shukaev
      wrote:<br>
    </div>
    <blockquote
      cite="mid:637cd7f1-9ea0-772b-3f18-ec98969425c1@Alexander.Shukaev.name"
      type="cite"><br>
      I did try both variants, after and before
      <br>
      <br>
      cmake_minimum_required(VERSION)
      <br>
      <br>
      but the result is the same.  The scope is for sure parent to
      targets.
      <br>
    </blockquote>
    <br>
    I don't know what else it could be but this works fine for me:<br>
    <blockquote>cmake_minimum_required(VERSION 2.8.12)<br>
      <br>
      if(POLICY CMP0063)<br>
          cmake_policy(SET CMP0063 NEW)<br>
      endif()<br>
      <br>
      file(WRITE foo.cpp "int main() {}")<br>
      <br>
      set(CMAKE_CXX_VISIBILITY_PRESET hidden)<br>
      <br>
      add_executable(foo foo.cpp)<br>
    </blockquote>
    <br>
    Is it possible that the scope where the policy warning comes from
    has its own cmake_minimum_required(VERSION) call? (e.g. is there
    more than one?)<br>
    <br>
    Nils<br>
  </body>
</html>