Automoc4 problems on OSX

Alexander Neundorf neundorf at kde.org
Mon Mar 1 23:03:53 CET 2010


On Monday 01 March 2010, Mike Arthur wrote:
> On 1 Mar 2010, at 21:31, Alexander Neundorf wrote:
> > Does automoc4 get the -F passed ?
> > If so, then somebody needs to add support for -F to automoc...
>
> I would bet money that it doesn't get it passed.

From kdesupport/automoc/Automoc4Config.cmake:

if(_moc_files)
      
set(_automoc_source "${CMAKE_CURRENT_BINARY_DIR}/${_target_NAME}_automoc.cpp")
      get_directory_property(_moc_incs INCLUDE_DIRECTORIES)
      get_directory_property(_moc_defs DEFINITIONS)
      get_directory_property(_moc_cdefs COMPILE_DEFINITIONS)

is -F included in INCLUDE_DIRECTORIES ?
If not, if on Mac, we need to check whether -F is in the link libraries. Hmm, 
but the target does not yet exist at this point. Hmm. Maybe automoc4 could 
check the location of the QtCore library and use this to determine whether 
and where Qt is installed as frameworks ?

> Also, re: automoc qt ->stdc port, where should this be done?

Where ?
Do you mean in trunk or in a branch or in git ?
Whereever you prefer :-)
CMake just switched to git.

Alex


More information about the Kde-buildsystem mailing list