Comment 5 for bug 1134634

Revision history for this message
Kent-Andre Mardal (kent-and) wrote : Re: [Bug 1134634] Re: instant cmake build does not allow custom extension module with include_dirs, libraries etc...

Can you attach the CMakeList.txt file?

(BTW sorry about the huge font in the previous mail - I didn't try
to make a point)

Kent

On 4 March 2013 14:40, Chaffra Affouda <email address hidden> wrote:

> compile.log says
>
> CMake Error at CMakeLists.txt:11 (INCLUDE):
> include called with wrong number of arguments. Include only takes one
> file.
>
>
> -- The C compiler identification is GNU
> -- The CXX compiler identification is GNU
> -- Check for working C compiler: /usr/bin/gcc
> -- Check for working C compiler: /usr/bin/gcc -- works
> -- Detecting C compiler ABI info
> -- Detecting C compiler ABI info - done
> -- Check for working CXX compiler: /usr/bin/c++
> -- Check for working CXX compiler: /usr/bin/c++ -- works
> -- Detecting CXX compiler ABI info
> -- Detecting CXX compiler ABI info - done
> -- Found SWIG: /usr/bin/swig2.0 (found version "2.0.4")
> -- Configuring incomplete, errors occurred!
>
> --
> You received this bug notification because you are a member of Instant
> Core Team, which is subscribed to Instant.
> https://bugs.launchpad.net/bugs/1134634
>
> Title:
> instant cmake build does not allow custom extension module with
> include_dirs, libraries etc...
>
> Status in Instant:
> New
>
> Bug description:
> See Dolfin Question #222899
>
> I used to be able to feed instant.build.build_module with the
> include_dirs variable to look for headers in a non-default location.
> After merging with the trunk version of instant this no longer works.
>
> See below, instant is missing an extra -I flag for my added
> include_dirs
>
> /usr/bin/c++
> -D_instant_module_b64000edc5326b1f061009cece574086bda73d8b_EXPORTS -fPIC
> -I/usr/local/include -I/usr/include/python2.7
> -I/tmp/tmp6Uu1ly2013-2-26-12-08_instant/instant_module_b64000edc5326b1f061009cece574086bda73d8b
> -o
> CMakeFiles/_instant_module_b64000edc5326b1f061009cece574086bda73d8b.dir/instant_module_b64000edc5326b1f061009cece574086bda73d8bPYTHON_wrap.cxx.o
> -c
> /tmp/tmp6Uu1ly2013-2-26-12-08_instant/instant_module_b64000edc5326b1f061009cece574086bda73d8b/instant_module_b64000edc5326b1f061009cece574086bda73d8bPYTHON_wrap.cxx
>
> /tmp/tmp6Uu1ly2013-2-26-12-08_instant/instant_module_b64000edc5326b1f061009cece574086bda73d8b/instant_module_b64000edc5326b1f061009cece574086bda73d8bPYTHON_wrap.cxx:3103:25:
> fatal error: fermi_dirac.h: No such file or directory
> compilation terminated.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/instant/+bug/1134634/+subscriptions
>