[prev in list] [next in list] [prev in thread] [next in thread] 

List:       cmake
Subject:    Re: [CMake] Quick question: CMAKE_CXX_FLAGS vs CMAKE_CXX_COMPILE_FLAGS
From:       Yngve Inntjore Levinsen <yngve.levinsen () gmail ! com>
Date:       2013-04-02 11:11:43
Message-ID: 515ABCEF.9030107 () gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Hi,

I believe compile flags are *not* used during linking, while
CMAKE_CXX_FLAGS will also be used during linking (if your linker
language is C++). I do not know of any other differences, but perhaps an
expert wants to correct me..

Cheers,
Yngve

On 02. april 2013 11:21, Daniel Carrera wrote:
> Hi everyone,
>
> What is the difference between CMAKE_CXX_COMPILE_FLAGS and CMAKE_CXX_FLAGS?
>
> The wiki only mentions CMAKE_CXX_FLAGS and CMAKE_C_FLAGS, and those
> are clearly used for compiling. But if you Google for CMake examples
> (e.g with MPI) you will quickly find CMake scripts that have
> CMAKE_CXX_COMPILE_FLAGS.
>
> I am experimenting with CMake and I want to figure out if I should be
> using CMAKE_Fortran_FLAGS or CMAKE_Fortran_COMPILE_FLAGS.
>
> Thanks for the help.
>
> Cheers,
> Daniel.
> --
> Lord of the rings calendar in your Linux/Unix/Mac terminal: cat
> /usr/share/calendar/calendar.lotr
> --
>
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.cmake.org/mailman/listinfo/cmake


[Attachment #5 (text/html)]

<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Hi,<br>
      <br>
      I believe compile flags are <b>not</b> used during linking, while
      CMAKE_CXX_FLAGS will also be used during linking (if your linker
      language is C++). I do not know of any other differences, but
      perhaps an expert wants to correct me..<br>
      <br>
      Cheers,<br>
      Yngve<br>
      <br>
      On 02. april 2013 11:21, Daniel Carrera wrote:<br>
    </div>
    <blockquote
cite="mid:CAEaabNhZMLjHDu6uWiypugK8=geEmHn4d+yw0MaJASoYZaFmzQ@mail.gmail.com"
      type="cite">
      <pre wrap="">Hi everyone,

What is the difference between CMAKE_CXX_COMPILE_FLAGS and CMAKE_CXX_FLAGS?

The wiki only mentions CMAKE_CXX_FLAGS and CMAKE_C_FLAGS, and those
are clearly used for compiling. But if you Google for CMake examples
(e.g with MPI) you will quickly find CMake scripts that have
CMAKE_CXX_COMPILE_FLAGS.

I am experimenting with CMake and I want to figure out if I should be
using CMAKE_Fortran_FLAGS or CMAKE_Fortran_COMPILE_FLAGS.

Thanks for the help.

Cheers,
Daniel.
--
Lord of the rings calendar in your Linux/Unix/Mac terminal: cat
/usr/share/calendar/calendar.lotr
--

Powered by <a class="moz-txt-link-abbreviated" \
href="http://www.kitware.com">www.kitware.com</a>

Visit other Kitware open-source projects at <a class="moz-txt-link-freetext" \
href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a>


Please keep messages on-topic and check the CMake FAQ at: <a \
class="moz-txt-link-freetext" \
href="http://www.cmake.org/Wiki/CMake_FAQ">http://www.cmake.org/Wiki/CMake_FAQ</a>

Follow this link to subscribe/unsubscribe:
<a class="moz-txt-link-freetext" \
href="http://www.cmake.org/mailman/listinfo/cmake">http://www.cmake.org/mailman/listinfo/cmake</a>
 </pre>
    </blockquote>
    <br>
  </body>
</html>



--

Powered by www.kitware.com

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic