Cmake does not know where to find a correct version of deal.ii. 

Are you trying to compile an example from the GitHub repository with an earlier release of deal.ii? If that’s the case, try removing the version from the find statement in the CMakeLists.txt. Otherwise you will have to instruct vscode where your library is installed. You can initiate cmake from the command line in the build directory manually, specifying the env variable DEAL_II_DIR. When a cmake cache is present, vscode uses it, and you may be able to get through. 

Luca

Il giorno 22 apr 2023, alle ore 20:18, Abbas <[email protected]> ha scritto:

Do you have the cmake extension installed in vscode? 
If not give it a try

Abbas

On Saturday, April 22, 2023 at 1:44:41 PM UTC+2 [email protected] wrote:
Hi,

I am trying to build step-1 using cmake on vscode. But vscode throws me this error:

`
CMake Error at CMakeLists.txt:30 (message):

*** Could not locate a (sufficiently recent) version of deal.II.  ***



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" that contains this path.

`
I have installed dealii using spack. I am able to build using the terminal though. What changes do i need to make for building using vscode?

Thanks 
Vinayak

--
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 [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/dealii/ade9af1e-1787-4840-b9db-c49e45dc6cc3n%40googlegroups.com.

--
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 [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/dealii/10A3FA15-956D-4860-97CB-BD2081C48DFE%40gmail.com.

Reply via email to