[CMake] Avoid "Qt's circular inclusion" warnings

NoRulez norulez at me.com
Tue Jul 12 09:20:33 EDT 2011


So, here is what I did, I think I do something wrong:

 

In the main CMakeLists.txt file at the end of the file I have:

 

## Create a CTestCustom.cmake file

FILE(WRITE ${CMAKE_BINARY_DIR}/CTestCustom.cmake

    "SET(CTEST_CUSTOM_WARNING_EXCEPTION \${CTEST_CUSTOM_WARNING_EXCEPTION}

    \"circular inclusion of \"\n"

    ")\n"

    "\n"

    "SET(CTEST_CUSTOM_ERROR_EXCEPTION \${CTEST_CUSTOM_ERROR_EXCEPTION}

    \"circular inclusion of \"\n"

    ")\n"

)

 

ENABLE_TESTING()
INCLUDE(CTest)
SET(CTEST_PROJECT_NAME "MyProject")

.

.

.

 

Is there something wrong?

 

Best Regards

 

Von: cmake-bounces at cmake.org [mailto:cmake-bounces at cmake.org] Im Auftrag von
NoRulez
Gesendet: Dienstag, 12. Juli 2011 13:53
An: 'Rolf Eike Beer'; cmake at cmake.org
Betreff: Re: [CMake] Avoid "Qt's circular inclusion" warnings

 

Thanks for the hint, but it doesn't work either:

 

Here is the error which I get in CDash:

 

Build Log Line    353

Error       

 

/usr/include/stdarg.h:4: circular inclusion of /usr/include/stdarg.h

 

Updating '../../../../source/app/client/Languages/Language_ces.ts'...

    Found 874 source text(s) (3 new and 871 already existing)

    Removed 5 obsolete entries

[ 93%] Generating Language_ces.qm

Updating '/.../build/app/client/Languages/Language_ces.qm'...

    Generated 84 translation(s) (1 finished and 83 unfinished)

    Ignored 790 untranslated source text(s)

[ 93%] Generating /.../source/app/client/Languages/Language_dan.ts

 

 

Build Log Line    362

Error       

 

/usr/include/stdarg.h:4: circular inclusion of /usr/include/stdarg.h

 

Updating '../../../../source/app/client/Languages/Language_dan.ts'...

    Found 874 source text(s) (3 new and 871 already existing)

    Removed 5 obsolete entries

[ 93%] Generating Language_dan.qm

Updating '/.../build/app/client/Languages/Language_dan.qm'...

    Generated 84 translation(s) (1 finished and 83 unfinished)

    Ignored 790 untranslated source text(s)

[ 93%] Generating /.../source/app/client/Languages/Language_deu.ts

 

 

Best Regards

NoRulez

 

-----Ursprüngliche Nachricht-----
Von: cmake-bounces at cmake.org [mailto:cmake-bounces at cmake.org] Im Auftrag von
Rolf Eike Beer
Gesendet: Dienstag, 12. Juli 2011 13:01
An: cmake at cmake.org
Betreff: Re: [CMake] Avoid "Qt's circular inclusion" warnings

 

> Hi,

> 

> in my App I use lupdate/lrelease to generate language plugins.

> 

> However due the bug in lupdate which generates "circular inclusion of ..."

> warnings, the dash board (CDash) has error's and not warnings.

> 

> I don't know why there are errors and not warnings.

> 

> Is there a way to disable/ignore those warnings?

 

Put this into CTestCustom.cmake in CMAKE_BINARY_DIR (not _SOURCE_ !):

 

set(CTEST_CUSTOM_WARNING_EXCEPTION ${CTEST_CUSTOM_WARNING_EXCEPTION}

    "circular inclusion of ")

 

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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20110712/62223259/attachment.htm>


More information about the CMake mailing list