Subject: [Fenics-ufc] CMake and out-of-source build

From: Johannes Ring <[email-masked]>
Date: Fri, 20 Aug 2010 13:17:29 +0200

Hi,

Below is a tiny patch to allow UFC to be built out-of-source.
Otherwise, it will complain about missing ufc.h.

Johannes

=== modified file 'CMakeLists.txt'
--- CMakeLists.txt	2010-08-20 10:45:38 +0000
+++ CMakeLists.txt	2010-08-20 11:14:11 +0000
@@ -92,7 +92,7 @@
   FILE(MAKE_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/src/ufc")

   # Include directories
-  include_directories(${Boost_INCLUDE_DIRS} ${PYTHON_INCLUDE_DIRS})
+  include_directories(${UFC_SOURCE_DIR}/src/ufc ${Boost_INCLUDE_DIRS}
${PYTHON_INCLUDE_DIRS})

   # Set module name
   set(SWIG_MODULE_NAME ufc)