On Wed, Aug 18, 2010 at 01:08:47PM +0100, Garth N. Wells wrote: > On Wed, 2010-08-18 at 13:59 +0200, Anders Logg wrote: > > How do we want to format the CMake code? > > > > foo(...) > > > > or > > > > foo (...) > > > > ? > > > > One option is to do foo() always except for if (...) and foreach (...). > > > > That's fine.
ok, let's do that.
For reference, here's an example of what it should look like:
# Look for petscconf.h
if (EXISTS ${PETSC_DIR}/${PETSC_ARCH}/include/petscconf.h)
message(STATUS "Found petscconf.h")
set(FOUND_PETSC_CONF 1)
else()
message(STATUS "Unable to find petscconf.h")
endif()
Note else() and endif() with no arguments.
> Perhaps more important is to pay some attention to the CMake recommended
> naming convention
>
> /usr/share/cmake-2.8/Modules/readme.txt
ok.
--
Anders
signature.asc
Description: Digital signature
_______________________________________________ Mailing list: https://launchpad.net/~dolfin Post to : [email protected] Unsubscribe : https://launchpad.net/~dolfin More help : https://help.launchpad.net/ListHelp

