Alexander Neundorf wrote: >> And, again a question regarding wording, currently the warnings generated >> by automoc say "Better <do this and that> for a more robust build." >> I'd like to have a better way to express it. >> "Use <this and that> for STRICT mode compatibility." ? >> or "for qmake compatibility" ? >> Better ideas ? > > I pushed it as branch AutomocFineTuning to stage. > The variable is now CMAKE_AUTOMOC_RELAXED_MODE . > > If that's fine with everybody, I'll merge it into next in the next days. > This should still go into 2.8.7.
I applied the attached patch and kdelibs build fails using the AutomocFineTuning branch (as expected). Uncommenting the line to invert the relaxed mode makes it build again. I'm fine with the change. However, the warnings/errors output by cmake don't include a reference to CMAKE_AUTOMOC_RELAXED_MODE (as that is not referenced in all error/warning cases). Thanks, Steve.
diff --git a/CMakeLists.txt b/CMakeLists.txt index ad97626..5654033 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -45,11 +45,12 @@ if (KHTML_BUILD_TESTREGRESSION) endif (KHTML_BUILD_TESTREGRESSION) option(STATIC_LIBRARY "Build kdelibs as static libraries." FALSE) +#set(CMAKE_AUTOMOC_RELAXED_MODE ON) add_subdirectory( libinqt5 ) add_subdirectory( libqtmimetypes ) add_subdirectory( tier1 ) - +return() ################# write platform profile file which will be installed ################# include(CreateKDEPlatformProfile.cmake)
-- 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://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers