-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
20 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,33 @@ | ||
#Compile with CMAKE: | ||
## Compile with CMAKE: | ||
|
||
"make all" in the current directory, and a directory "build" will be created here. The libs and includes will be under "build/libs" and "build/include". | ||
|
||
config/env.sh sets the required environmental vars used by CMAKE. | ||
|
||
To turn off specific lib, you can modify Makefile at the current directory as: | ||
|
||
# turn off hdf | ||
all: | ||
### turn off hdf | ||
``` | ||
mkdir build | ||
. config/env.sh; cd build; cmake -DBUILD_H4=off ..; make; make test | ||
``` | ||
|
||
# turn off netcdf | ||
all: | ||
### turn off netcdf | ||
``` | ||
mkdir build | ||
. config/env.sh; cd build; cmake -DBUILD_NC=off ..; make; make test | ||
``` | ||
|
||
# turn off hdf5 | ||
all: | ||
### turn off hdf5 | ||
``` | ||
mkdir build | ||
. config/env.sh; cd build; cmake -DBUILD_H5=off ..; make; make test | ||
``` | ||
|
||
#### for hdf5 libs, if you are using hdf5 libs with major version <= 1.8 | ||
add the `H5_VERSION_1_8=ON` when running cmake | ||
|
||
``` | ||
mkdir build | ||
. config/env.sh; cd build; cmake -DBUILD_H5=on -DH5_VERSION_1_8=ON ..; make; make test | ||
``` |