[opensuse-programming] Re: [opensuse-packaging] Need cmake help for openCOLLADA

On 04/30/2011 01:38 PM, Dave Plater wrote:
I've a problem with my cmake openCOLLADA build when using multiple jobs, one lib wants to link to another that hasn't finished building/linking yet. Being a hacker at heart I'm trying to add this to the CMakeLists.txt of the lib that can't find the other :
find_package(lib/libOpenCOLLADABaseUtils) WHILE(libOpenCOLLADABaseUtils_FOUND)
I'm still going over commands and syntax, I don't know how to invert "libOpenCOLLADABaseUtils_FOUND" yet or if this method will even work. openCOLLADA takes a long time to build and if I build it on my system one of the libs hogs my system to the point of it freezing for at least 20 minutes, so I can only do this and go away for a while and come back to find that it's failed. Doesn't fair well with hacking.
Please help. Thanks Dave P
Ok I've got as far as this, hope it works : # GeneratedSaxParser fails to find OpenCOLLADABaseUtils for linking during multiple job builds # this is an attempt to make GeneratedSaxParser's linking wait for libOpenCOLLADABaseUtils to finish first. find_package(lib/libOpenCOLLADABaseUtils) WHILE(libOpenCOLLADABaseUtils_NOTFOUND) find_package(lib/libOpenCOLLADABaseUtils) ENDWHILE(libOpenCOLLADABaseUtils_FOUND is FALSE) Thanks Dave P -- To unsubscribe, e-mail: opensuse-programming+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-programming+help@opensuse.org
participants (1)
-
Dave Plater