[CMake] Problems with MSVC 2010 generator

Petr Kmoch petr.kmoch at gmail.com
Mon Jul 9 09:27:09 EDT 2012


Hi all.

Actually, the MS compilers distinguish <> and "" just fine (at least
in my VS 2005 and VS 2010 installation). Dominik, do you perhaps
specify the path to your Math.h in include_directories()?

Petr

On Mon, Jul 9, 2012 at 3:20 PM, Rolf Eike Beer <eike at sf-mail.de> wrote:
> Am 09.07.2012 15:07, schrieb Dominik Szczerba:
>
>> Thanks a lot for your hints. I managed to find the problem. By some
>> unclear reason iostream or one of its sub-includes includes math.h and
>> very strangely does not take the one in the system folder, instead
>> taking my local file called Math.h in the same folder as test.cxx
>> (Windows names are unfortunately case insensitive). Renaming the file
>> solves the issue.
>
>
> The reason is very likely that MS compilers are broken regarding the
> difference between <> and "" in #include statements, i.e. they always work
> as "". You already found out why this is a bad idea.
>
> Eike
>
> --
>
> 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


More information about the CMake mailing list