cotire icon indicating copy to clipboard operation
cotire copied to clipboard

Qt UIC not propagated to unity builds

Open kapecp opened this issue 7 years ago • 0 comments

Hello

my platform: OSX 10.11.6, CMake v3.10.2, Cotire v1.7.10

I have a project with *.ui files and use set( CMAKE_AUTOUIC ON )

The non-cotired <target> generates correct include path to the <target>_autogen/include folder.

However, the cotired <target>_unity is missing the include path to <target>_autogen/include folder with generated ui_*.h files, which can not be found and causing compile error.

see CMake documentation:

The generated generated ui_*.h files are placed in the <AUTOGEN_BUILD_DIR>/include directory which is automatically added to the target’s INCLUDE_DIRECTORIES

well, seems it is not propagated to unity builds.

current workaround:

  • use include_directories( ${CMAKE_CURRENT_BINARY_DIR}/<target>_autogen/include )

PS Hope this great tool will get some updates in near future ;-)

kapecp avatar Mar 02 '18 22:03 kapecp