[CMake] qt .qrc file modifications require two builds
Michael Jackson
mike.jackson at bluequartz.net
Wed Dec 16 09:53:20 EST 2009
On Dec 15, 2009, at 7:24 PM, Glenn Hughes wrote:
> Really? How could it? Suppose I only have 1 qrc file, named foo.qrc:
> wouldn't these two lines be equivalent?
>
> FILE (GLOB my_RESOURCES RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} "res/
> *.qrc" )
> SET( my_RESOURCES "res/foo.qrc")
>
> ???
> TIA
> G
>
> On Tue, Dec 15, 2009 at 7:15 PM, John Drescher
> <drescherjm at gmail.com> wrote:
>>> The CMake script in question looks more or less like:
>>>
>>> FILE (GLOB my_RESOURCES RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} "res/
>>> *.qrc" )
>>> QT4_ADD_RESOURCES( my_RESOURCES_SOURCES ${my_RESOURCES} )
>>>
>>> ...
>>
>> It's always best to not do any file globbing and add each file by
>> hand. I believe this is causing the problem.
>>
>> John
>>
I wont debate the merits of FILE(GLOB.. ) but looking back through the
mail list archives FILE (GLOB ..) leads to more problems for more
people than it probably solves. I would stay away from it unless you
have some pretty special circumstances.
_________________________________________________________
Mike Jackson mike.jackson at bluequartz.net
BlueQuartz Software www.bluequartz.net
Principal Software Engineer Dayton, Ohio
More information about the CMake
mailing list