This page from the documentation might help:
http://www.cmake.org/cmake/help/v3.1/manual/cmake-variables.7.html
One in particular that may be useful for you to test is
CMAKE__COMPILER_ID:
http://www.cmake.org/cmake/help/v3.1/variable/CMAKE_LANG_COMPILER_ID.html
Note that it does state it¹s no
Hi,
> Is it possible to set a compiler flags only if compiler is MinGW (that
> means these flags wouldn't be set on MSVC).
to target specific compilers you can make use of CMAKE_CXX_COMPILER_ID.
In my projects I usually include compiler specific settings like this:
foreach(_base
${CMAKE_CXX_
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 wrote:
>
> Hi,
>
> Is it possible to set a compiler
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_FA