On Friday October 28 2011 10:00:15 Martin Sandve Alnæs wrote: > Just a few quick comments here: > > cmath is fully standard, which makes it not comparable to boost math for > these issues. Ok. > The issue is mainly from python because from C++ there will be a build > system to handle libraries. But who tells the build system to provide the library? Should that be a user tweaking the local CMakeList.txt. I think it would be nice if UFC provided a generic FindUFC.cmake including all dependencies by default, or FFC provided such a file (FindSomething.cmake), which then could be problem dependent. > I think boost math is comparable to boost shared_ptr, in fact they are both > tr1 and light weight. Configuring one more boost library in ufc would not > be so bad. Ok. > But it is more robust if it is optional and not linked with unless > needed. Sure but then we rely on user interaction, and we need to provide a consistant and robust interface for that. If I have not missed anything I see two ideal solutions: 1) UFC provides everything for us: Python : Everything just works C++ : We include all flags in FindUFC.cmake 2) FFC provides optional dependecies for us. For this to be automated FFC need to scan a form for the use of non standard functions this information is then propagated: Python : to the ufc provided JIT compilation C++ : to a local CMakeFile (not sure what name we should have), which a user manually should include in the local CMakeFile, or (optimally) is already included in the local CMakeFiles.txt through some fancy include path. Other suggestions? I am open for both solutions. 1) is the easiest to implement and is the least disruptive to the present functionality. Johan > Martin > Den 28. okt. 2011 17.41 skrev "Johan Hake"