Hi Xavier, i think the following command will do:
set(DEAL_II_MIN_VERSION "9.5.0") set(DEAL_II_DIR "~/.local/lib/dealii") find_package(deal.II ${DEAL_II_MIN_VERSION} REQUIRED HINTS ${DEAL_II_DIR} ../ ../../ $ENV{DEAL_II_DIR}) IF(NOT ${deal.II_FOUND}) MESSAGE(FATAL_ERROR "*** Could not locate a (sufficiently recent) version of deal.II. ***\n" "You may want to either pass a flag -DDEAL_II_DIR=/path/to/deal.II to cmake" " or set an environment variable \"DEAL_II_DIR\".") ENDIF() Regards, Nils Xavier Johnson <dubiousturbule...@gmail.com> writes: > Hi, > > This may be a newb question. I am probably struggling understanding how to > set paths in cmake and spent some time reading the documentation for > cmake. > > My question is, how can I set the DEAL_II_DIR in the CMakeLists.txt so I > don't have to provide a path every time I call the cmake command? > > Thanks -- Nils Schween PhD Student Phone: +49 6221 516 557 Mail: nils.schw...@mpi-hd.mpg.de PGP-Key: 4DD3DCC0532EE96DB0C1F8B5368DBFA14CB81849 Max Planck Institute for Nuclear Physics Astrophysical Plasma Theory (APT) Saupfercheckweg 1, D-69117 Heidelberg https://www.mpi-hd.mpg.de/mpi/en/research/scientific-divisions-and-groups/independent-research-groups/apt -- The deal.II project is located at http://www.dealii.org/ For mailing list/forum options, see https://groups.google.com/d/forum/dealii?hl=en --- You received this message because you are subscribed to the Google Groups "deal.II User Group" group. To unsubscribe from this group and stop receiving emails from it, send an email to dealii+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/dealii/874je0lil7.fsf%40mpi-hd.mpg.de.