<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hello Alexey,<br>
    <br>
    <div class="moz-cite-prefix">On 04/04/2014 03:07 PM, Alexey Samsonov
      wrote:<br>
    </div>
    <blockquote
cite="mid:CAGSYnCMeJGfbe2UGeEMFvP0h5PrqOTMY6oDu+WD6rNn756CnNQ@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div class="gmail_extra"><br>
          <div class="gmail_quote">
            <blockquote class="gmail_quote" style="margin:0 0 0
              .8ex;border-left:1px #ccc solid;padding-left:1ex">
              CC=clang CXX=clang++ cmake \<br>
                  -DCMAKE_CXX_FLAGS="-std=c++11 -stdlib=libc++" \<br>
                  -DCMAKE_CXX_COMPILER_WORKS=1 \<br>
            </blockquote>
            <div> </div>
            <div>^^^</div>
            <div>Why do you need this line?</div>
          </div>
        </div>
      </div>
    </blockquote>
    <br>
    Without this line we fail on:<br>
    <br>
    -- Check for working CXX compiler: /usr/bin/clang++ -- broken<br>
    <br>
    The reason is that the [built-in] check doesn't propagate
    CMAKE_EXE_LINKER_FLAGS to a linker when build the test.<br>
    <br>
    In fact, we probably should define CMAKE_CXX_COMPILER_FORCED instead
    of CMAKE_CXX_COMPILER_WORKS as the latter seems to be an internal
    variable.<br>
    <br>
    -- <br>
    <br>
  </body>
</html>