<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    So, does it mean CMake try_compiles are ran once even though you may
    have added/removed definitions?<br>
    <br>
    On 05/09/2012 02:43 PM, Bradley Lowekamp wrote:
    <blockquote
      cite="mid:07BD0F65-809B-45E9-8E56-AFC0D2F58281@mail.nih.gov"
      type="cite">Yes, I think that is the reason. CMake try_compiles
      are done for that section of code. Essentially adding
      the -std=gnu++0x changes the compiler you are using to support a
      different language.
      <div><br>
      </div>
      <div>Brad</div>
      <div><br>
        <div>
          <div>On May 9, 2012, at 8:36 AM, Arnaud Gelas wrote:</div>
          <br class="Apple-interchange-newline">
          <blockquote type="cite">
            <meta content="text/html; charset=windows-1252"
              http-equiv="Content-Type">
            <div bgcolor="#FFFFFF" text="#000000"> Hi Brad,<br>
              <br>
              ITK was not compiled when I tried this...<br>
              The only thing, I did is to configure once the project
              without the definitions, and a second time with the
              definitions.<br>
              <br>
              Could that be the reason?<br>
              <br>
              Thanks,<br>
              Arnaud<br>
              <br>
              On 05/09/2012 02:31 PM, Bradley Lowekamp wrote:
              <blockquote
                cite="mid:80CA90E4-83DD-4FF3-AFAB-2962D0321162@mail.nih.gov"
                type="cite">Hello Arnaud,
                <div><br>
                </div>
                <div>Would this be after you compiled ITK with out this
                  flag, and then had a project using ITK where this flag
                  was added?</div>
                <div><br>
                </div>
                <div>Brad</div>
                <div><br>
                </div>
                <div><br>
                  <div>
                    <div>On May 9, 2012, at 8:00 AM, Arnaud Gelas wrote:</div>
                    <br class="Apple-interchange-newline">
                    <blockquote type="cite">
                      <div>Hi all,<br>
                        <br>
                        When doing cmake -DCMAKE_CXX_FLAGS=-std=gnu++0x
                        /path/to/ITK &amp;&amp; make<br>
                        -j8, I get compilation errors in vnl_math (see
                        below).<br>
                        <br>
                        gcc version: 4.6.3<br>
                        cmake version: 2.8.7<br>
                        <br>
                        What would be the best way to fix these errors?<br>
                        <br>
                        Thanks,<br>
                        Arnaud<br>
                        <br>
                        ---<br>
                        <br>
/home/ajg23/DEVEL/src/ITK/Modules/ThirdParty/VNL/src/vxl/core/vnl/vnl_math.h:87:27:<br>
                        error: ‘constexpr’ needed for in-class
                        initialization of static data<br>
                        member ‘e’ of non-integral type<br>
/home/ajg23/DEVEL/src/ITK/Modules/ThirdParty/VNL/src/vxl/core/vnl/vnl_math.h:88:31:<br>
                        error: ‘constexpr’ needed for in-class
                        initialization of static data<br>
                      </div>
                    </blockquote>
                  </div>
                </div>
              </blockquote>
            </div>
          </blockquote>
        </div>
      </div>
    </blockquote>
    <br>
  </body>
</html>