Unsolved qmake and external library/header dependencies
-
I'm trying to come up with a way to add dependencies on external libraries in my qmake files.
I want to trigger a external library build (eg configure make) if libs and headers aren't present.
I want it to be able to work with a multithread build (eg make -j4)
I tried defining QMAKE_EXTRA_TARGET and PRE_TARGETDEPS. This works great for the library (.so), but it doesn't work for the header files and causes compilation to halt.
It seems one thread starts to build library, then other threads continue compiling without waiting for the dependent library to be done building.
Thoughts?
-
Hi,
What do you mean by "trigger an external library build" ? If the dependency itself doesn't exist build it first ?