[CMake] qt .qrc file modifications require two builds

John Drescher drescherjm at gmail.com
Tue Dec 15 19:15:59 EST 2009


> 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


More information about the CMake mailing list