NCAR / ParallelIO

A high-level Parallel I/O Library for structured grid applications
Apache License 2.0
137 stars 53 forks source link

can't compile with cmake #1971

Closed laestis closed 1 year ago

laestis commented 1 year ago

Hello,

I cloned the repository but I am not succeeded to compile with cmake (which I am not used to use) CC=mpicc FC=mpif90 cmake -DNetCDF_C_PATH=/usr/local/ -DNetCDF_Fortran_PATH=/usr/local/ -DPnetCDF_PATH=/usr/local -DPIO_ENABLE_TIMING=OFF src/ I have the following message: CMake Error at clib/CMakeLists.txt:158 (message): Must have PnetCDF and/or NetCDF C libraries However netcdf and pnetcdf are installed and present in /usr/local/lib . Thanks for insight about what I am doing wrong

laestis commented 1 year ago

I misunderstood the src part. CC=mpicc FC=mpif90 cmake -DNetCDF_C_PATH=/usr/local/ -DNetCDF_Fortran_PATH=/usr/local/ -DPnetCDF_PATH=/usr/local -DPIO_ENABLE_TIMING=OFF . works fine