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 <[email protected]> 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                  [email protected]
BlueQuartz Software                    www.bluequartz.net
Principal Software Engineer                  Dayton, Ohio
_______________________________________________
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

Reply via email to