/usr/share/dune/cmake/modules/DuneCommonMacros.cmake is in libdune-common-dev 2.3.1-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | # This cmake file holds tests and directives that are executed
# for the module dune-common and have to be executed by
# all dependent modules
#
# Specifically it configure the DUNE debug streams and
# tests whether std::shared_ptr, LAPACK and BLAS are available.
#
include(DuneStreams)
dune_set_minimal_debug_level()
include(CheckSharedPtr)
if(Fortran_Works)
# search for lapack
find_package(LAPACK)
set(HAVE_LAPACK ${LAPACK_FOUND})
set(HAVE_BLAS ${BLAS_FOUND})
else(Fortran_Works)
set(HAVE_LAPACK Off)
set(HAVE_BLAS Off)
# Write an empty FC header
file(WRITE ${CMAKE_BINARY_DIR}/FC.h "")
endif(Fortran_Works)
find_package(GMP)
include(AddGMPFlags)
find_package(Inkscape)
include(UseInkscape)
include(FindMProtect)
include(DuneBoost)
|