[Paraview-developers] Moving around ui files in ParaView

Joachim Pouderoux joachim.pouderoux at kitware.com
Mon Aug 1 11:46:48 EDT 2016


I would propose (not tested yet) to change vtkModuleMacros.cmake:191

    include_directories(${${vtk-module}_INCLUDE_DIRS})

by

    include_directories(*BEFORE* ${${vtk-module}_INCLUDE_DIRS})

What do you think?


*Joachim Pouderoux*, PhD

*Technical Expert - Scientific Computing Team*
*Kitware SAS <http://www.kitware.fr>*


2016-08-01 17:44 GMT+02:00 Joachim Pouderoux <joachim.pouderoux at kitware.com>
:

> The workaround would be to add those source and bin directory using the
> BEFORE option of the cmake function include_directories().
> However, not sure yet where it should be done and there might be a better
> fix.
>
> *Joachim Pouderoux*, PhD
>
> *Technical Expert - Scientific Computing Team*
> *Kitware SAS <http://www.kitware.fr>*
>
>
> 2016-08-01 17:27 GMT+02:00 Mathieu Westphal <mathieu.westphal at kitware.com>
> :
>
>> Hello
>>
>> I've moved an .ui file and associated class from Components to
>> ApplicationComponents and modified it a bit in a branch.
>>
>> Compiling my branch from an empty directory works perfectly, but
>> compiling it from up to date build directory would fail like this :
>>
>> error: 'class pqSpreadSheetViewDecorator::pqInternal' has no member named 'ExportVisibleColumns'
>>
>> As if the ui file had not been updated. We have already tracked the problem to the fact the build/Qt/Components still contains the old ui_*.h file.
>>
>> Removing it manually fix the problem. but it shows that there may be a problem with the include order,
>> Is there any reason for the include directory of the current source and build directory for not being included before all other include directories ?
>> Is there a work around for this issue ?
>> Because in it's current state, if my branch get merged, anyone compiling master from an existing build directory will encounter the ame bug.
>>
>> Mathieu Westphal
>>
>> _______________________________________________
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>>
>> Search the list archives at:
>> http://markmail.org/search/?q=Paraview-developers
>>
>> Follow this link to subscribe/unsubscribe:
>> http://public.kitware.com/mailman/listinfo/paraview-developers
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview-developers/attachments/20160801/be5a23cb/attachment.html>


More information about the Paraview-developers mailing list