Skip to content
This repository was archived by the owner on Aug 28, 2024. It is now read-only.

Commit

Permalink
Added instructions on using cmake
Browse files Browse the repository at this point in the history
  • Loading branch information
daminton committed Oct 25, 2022
1 parent 0f9c026 commit cd1bf8d
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 441 deletions.
24 changes: 23 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,23 @@
swifter-omp
## Configuring the build ##

First create a `build/` directory at the top level of your project and build there.

$ mkdir build
$ cd build
$ cmake ..
$ make

When you do this, temporary CMake files will not be created in your `src/` directory.

As written, this template will allow you to specify one of three different sets of compiler flags. The default is RELEASE. You can change this using to TESTING or DEBUG using

$ cmake .. -DCMAKE_BUILD_TYPE=DEBUG

or

$ cmake .. -DCMAKE_BUILD_TYPE=TESTING

The Swiftest project requires you to have installed NetCDF and NetCDF Fortran libraries somewher on your system. If the paths to the library and module files aree not located in standard paths, you can either create an environment variable called NETCDF_FORTRAN_HOME that contains the path to the install location, or when you configure the project you can set the path manually with


$ cmake .. -CMAKE_PREFIX_PATH=/path/to/netcdf/
Loading

0 comments on commit cd1bf8d

Please sign in to comment.