[CMake] MinGW flags

J. Caleb Wherry calebwherry at gmail.com
Mon Dec 15 11:43:23 EST 2014


Very useful page for these types of questions:

http://www.cmake.org/Wiki/CMake_Useful_Variables

"if (MINGW)" should work.

Or if you want to go off the compiler id use: CMAKE_CXX_COMPILER_ID.

-Caleb

On Mon, Dec 15, 2014 at 11:16 AM, Petr Bena <benapetr at gmail.com> wrote:
>
> Hi,
>
> Is it possible to set a compiler flags only if compiler is MinGW (that
> means these flags wouldn't be set on MSVC).
>
> if (WIN32) matches both compilers obviously. Thanks
> --
>
> Powered by www.kitware.com
>
> Please keep messages on-topic and check the CMake FAQ at:
> http://www.cmake.org/Wiki/CMake_FAQ
>
> Kitware offers various services to support the CMake community. For more
> information on each offering, please visit:
>
> CMake Support: http://cmake.org/cmake/help/support.html
> CMake Consulting: http://cmake.org/cmake/help/consulting.html
> CMake Training Courses: http://cmake.org/cmake/help/training.html
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/cmake
>


-- 
J. Caleb Wherry
*Scientific Software Engineer*

<http://www.calebwherry.com>
http://www.calebwherry.com
+1 (615) 708-5651
calebwherry at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20141215/702ff130/attachment.html>


More information about the CMake mailing list